sshd and file descriptors

Andreas Hasenack andreas at conectiva.com.br
Tue Jul 2 02:38:37 EST 2002


Em Wed, Jun 26, 2002 at 04:10:56PM -0700, Frank Cusack escreveu:
> On Wed, Jun 26, 2002 at 07:06:13PM -0300, Andreas Hasenack wrote:
> > 
> > Shouldn't a daemon close all fds before going into "daemon land"?
> > What exactly is broken here?
> > 
> 
> rpm

Well, just to post JBJ's (predictable) response to this matter:
(JBJ is ">")

----

> Do you mean 0,1,2 or other file descriptiors? Closing stdin/stdout/stderr
> would certainly make testing of packaging a PITA. OTOH, rpm support would
> be far easier ;-)

Others, as Andreas has reported.

[...]
> But this isn't really an rpm problem. Daemons should undertake a close
> of all open file descriptors. No if's, and's or but's.




More information about the openssh-unix-dev mailing list