Commit 91e8a274 authored by Michal Horejsek's avatar Michal Horejsek

Merge branch 'nopty' into 'master'

Avoid controlling pty if no pty is being used

See merge request !2
parents 6a397fa9 492f09ad
......@@ -133,7 +133,8 @@ class ProxySSHSession(SSHSessionForUnixConchUser):
gid=None,
usePTY=self.ptyTuple,
)
fcntl.ioctl(self.pty.fileno(), tty.TIOCSWINSZ, struct.pack('4H', *self.winSize))
if self.ptyTuple:
fcntl.ioctl(self.pty.fileno(), tty.TIOCSWINSZ, struct.pack('4H', *self.winSize))
self.avatar.conn.transport.transport.setTcpNoDelay(1)
@property
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment