[Bug 3] sshd does not properly daemonize itself

Markus Friedl markus at openbsd.org
Thu Nov 15 00:45:49 EST 2001


> ------- Additional Comments From ralston at pobox.com  2001-11-13 15:59 -------
> The question is irrelevant; regardless of how one chooses to answer it, the
> answer does not make sshd's behavior (of not making sure all inherited
> descriptors are closed) any less broken.

no, i don't understand. if the program calling sshd breaks because
sshd does not close fd 142 on startup, then the program is broken.
it must close it's filedescriptors.

if sshd breaks because fd 142 is open on startup then sshd is broken.

closing 1024 or more FDs on startup is not common in daemons, but
they need to make sure to close fd 0-2. closing 1024 filedescriptors
on startup does not fix bugs, it only fixes symptoms and hides the
actual bugs.

-m



More information about the openssh-unix-dev mailing list