[Bug 3] sshd fails to close open file descriptors when forking

Ed Phillips ed at UDel.Edu
Tue Oct 23 05:59:08 EST 2001

This is a nice example of why I'm so confused about what's going on with
my "ssh hangs on exit"  problem... there seem to be at least two similar
problems occurring here, and it's not clear which one mine is, and which
one(s) is(are) fixed or not.



On Tue, 23 Oct 2001 bugzilla-daemon at mindrot.org wrote:

> Date: Tue, 23 Oct 2001 05:48:04 +1000 (EST)
> From: bugzilla-daemon at mindrot.org
> To: openssh-unix-dev at mindrot.org
> Subject: [Bug 3] sshd fails to close open file descriptors when forking
> http://bugzilla.mindrot.org/show_bug.cgi?id=3
> ralston at pobox.com changed:
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|RESOLVED                    |REOPENED
>          Resolution|INVALID                     |
> ------- Additional Comments From ralston at pobox.com  2001-10-23 05:48 -------
> It doesn't matter whether or not daemon() or some other helper function does it,
> but sshd MUST close all fds from 3 to sysconf(_SC_OPEN_MAX) after forking.
> If the hang-on-exit bug is with fds 0/1/2, then indeed, this bug isn't related
> to the hang-on-exit bug.  But it's still a bug.
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.

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