sshd fails to close open file descriptors when forking

Ed Phillips ed at UDel.Edu
Fri Oct 19 22:53:56 EST 2001


On Thu, 18 Oct 2001, James Ralston wrote:

> Date: Thu, 18 Oct 2001 16:45:13 -0400 (EDT)
> From: James Ralston <qralston+ml.openssh-unix-dev at andrew.cmu.edu>
> To: openssh-unix-dev at mindrot.org
> Subject: sshd fails to close open file descriptors when forking
>
> I don't like to be the bearer of bad news, but...
>
> In light of the big "ssh hangs on logout" thread (wherein the true
> culprit was identified as being programs that don't close inherited
> file descriptors), I find it somewhat ironic that one of those "broken
> daemon" programs that doesn't close its open fds is sshd.  :(
>
> http://bugzilla.mindrot.org/show_bug.cgi?id=3
>
> (At least it shouldn't be too difficult to fix...)

So how exactly does sshd exit without closing it's (inherited or other)
file descriptors?

;-)

	Ed

Ed Phillips <ed at udel.edu> University of Delaware (302) 831-6082
Systems Programmer III, Network and Systems Services
finger -l ed at polycut.nss.udel.edu for PGP public key




More information about the openssh-unix-dev mailing list