sshd fails to close open file descriptors when forking

James Ralston qralston+ml.openssh-unix-dev at andrew.cmu.edu
Sat Oct 20 08:11:40 EST 2001


On Fri, 19 Oct 2001, Ed Phillips wrote:

> 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?  ;-)

I don't understand your question.  Could you rephrase?

-- 
James Ralston, Information Technology
Software Engineering Institute
Carnegie Mellon University, Pittsburgh, PA, USA




More information about the openssh-unix-dev mailing list