[Bug 1463] Running nohup sleep 70 & and then exiting shell, hangs ssh

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Jun 15 15:36:25 EST 2008


https://bugzilla.mindrot.org/show_bug.cgi?id=1463





--- Comment #6 from Darren Tucker <dtucker at zip.com.au>  2008-06-15 15:36:21 ---
Created an attachment (id=1528)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1528)
Do not rely on isatty(ptymaster)

Please try this patch against 5.0p1.

Damien figured it out.  sshd relies on isatty() to determine whether or
not a given channel is connected to a pty, however this doesn't work on
Solaris for a pty master (which is entirely reasonable, since it's not
a tty).  This flag, in turn, controls whether or not the infamous
hang-on-exit fixes are used.

This diff adds an extra parameter that controls whether or not a given
channel is connected to a pty, rather than relying on undefined
semantics.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list