[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpm leaks an fd in install/erase scripts



On Fri, Aug 01, 2003 at 11:56:23AM +0200, Enrico Scholz wrote:
> fcusack@fcusack.com (Frank Cusack) writes:
> 
> > You are correct, sshd (and all processes claiming to be daemons) should
> > run through open fd's and close them.
> 
> True for fd 0-2, but should not be done generally. E.g. djb's fghack
> from his daemontools will not work when sshd closes all descriptors.

Hmmm, I seem to see the letter h-a-c-k there, but mebbe it's just me.

> 
> (ok; the right way would be to convince sshd people to add a
> '--operate-normally-but-do-not-go-into-background' option).

<grin>

Now you're starting to make sense.  Might even be there, -d for daemons
often avoids the fork/daemonize which is painful to debug.

Hmmm, mebbe rpm needs a --traditional-buggy-behavior flag too. ;-)

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []