httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Handler <handler-list-new-ht...@grendel.net>
Subject Re: Deamon tools
Date Mon, 13 May 2002 22:35:46 GMT
Aaron Bannert <aaron@clove.org> writes:

> I think we should just fail with an error if the user wished to start
> up under daemontools mode (no_detach mode) but somehow started httpd
> as a process group leader.

Concur.

> On Mon, May 13, 2002 at 03:15:44PM -0700, dirkx@covalent.net wrote:
> > In that case I'd suggest we do
> >
> >       if (setsid() fails)
> >               always log error
> >               exit(1) unless no_detach.
> 
> should that be
>         exit(1) if no_detach
> ? or do I have the logic backward?

That's correct, dirk had the test inverted.

Note that I'm not sure if httpd 2.0 is this robust in handling
setsid(2), so if we're spending the time on this and it's considered
important for 1.3, someone should probably spend some time on making
2.0 as robust.

--michael

Mime
View raw message