Mailing List Archive

[Bug 396] sshd orphans processes when no pty allocated
http://bugzilla.mindrot.org/show_bug.cgi?id=396





------- Additional Comments From djm@mindrot.org 2005-02-14 11:55 -------
Is this not another manifestation of the infamous bug #52?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 396] sshd orphans processes when no pty allocated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=396





------- Additional Comments From dtucker@zip.com.au 2005-02-14 12:19 -------
(In reply to comment #8)
> Is this not another manifestation of the infamous bug #52?

I don't think so.

Bug #52 is sshd waiting for descriptors to close on a clean shutdown. This one
is subprocesses not knowing that sshd (and thus their stdin/stdout) has gone
away on abnormal termination, usually because they don't check if their read()
calls on stdin return zero.

(This may be because some platforms return zero for reads in some cases even
when the descriptor hasn't closed. Such behaviour would appear to be in
violation of POSIX.)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.