bugzilla-daemon at mindrot.org
2005-Oct-10 23:05 UTC
[Bug 1101] terminal allocation hangs ssh at a blocking tcsetattr (-t option)
http://bugzilla.mindrot.org/show_bug.cgi?id=1101
Summary: terminal allocation hangs ssh at a blocking tcsetattr (-
t option)
Product: Portable OpenSSH
Version: 4.2p1
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: bitbucket at mindrot.org
ReportedBy: imre.deak at nokia.com
I'm trying to use ppp over ssh as follows:
# pppd passive pty "ssh -qtt remote.mine.nu pppd
192.168.10.1:192.168.10.2"
The ssh process which is run as a child will try as a consequence of option -t
will hang for ever in function enter_raw_mode / tcsetattr(fileno(stdin),
TCSADRAIN, &tio) .
I could avoid the problem with replacing TCSADRAIN with TCSANOW, not sure
though what a proper fix would be for this.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-Oct-12 12:39 UTC
[Bug 1101] terminal allocation hangs ssh at a blocking tcsetattr (-t option)
http://bugzilla.mindrot.org/show_bug.cgi?id=1101 ------- Comment #1 from djm at mindrot.org 2005-10-12 22:39 ------- I'm not sure I understand: does it hang because pppd is filling the pty buffer so it never drains? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-Oct-14 05:52 UTC
[Bug 1101] terminal allocation hangs ssh at a blocking tcsetattr (-t option)
http://bugzilla.mindrot.org/show_bug.cgi?id=1101 ------- Comment #2 from imre.deak at nokia.com 2005-10-14 15:52 ------- Well I'm not sure, why it hangs at this point, but even if it is as you say filled by the local pppd there won't be anyone reading it on the other side, since the remote pppd is not yet started. So it's a dead-lock situation in that case. Let me know if you need any other info, or want me to perform some test. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.