httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: RFC: register_other_child
Date Sun, 27 Jul 1997 21:48:14 GMT
Nothing uses BROKEN_WAIT any longer ... 

Yeah you're right I didn't notice the waitpid wrapper.  Ugh the waitpid
wrapper is blocking.  That won't do at all.  Not at all. 

Dean

On Sun, 27 Jul 1997, Ben Laurie wrote:

> Dean Gaudet wrote:
> > 
> > Ok this hasn't been tested ... and I haven't implemented any reliable logs
> > with it yet.  I'm just looking for comments on the api.  Skip down to the
> > http_main.h diff to see the interface.
> > 
> > The one addition that we haven't talked about before is the "writable fd"
> > test.  I see the following modes of failure for a logging child:
> > 
> > - it dies
> > - it stops reading
> > 
> > We talked about the first, but not the second.  The approach I use here is
> > to select() on the pipe to see if it's writable.  If it isn't, then I tell
> > the child's owner.
> > 
> > Oh yeah, the below removes reap_children() because it is totally bogus.
> > It's supposed to be used when NEED_WAITPID is defined, but it uses waitpid
> > itself.  This means that UTS21 and NEWSOS have been broken for some time.
> > 
> > Dean
> 
> Actually, it is supposed to be used when BROKEN_WAIT is defined. I don't
> know how "|| defined(NEED_WAITPID)" snuck in. Getting rid of it
> altogether would seem unwise, as wait() is sometimes, err, broken.
> 
> Besides, using waitpid() when NEED_WAITPID is defined doesn't seem like
> an error - presumably NEED_WAITPID causes a substitute waitpid() to be
> used? (I know; I should check. It's getting late and I'm hungry).
> 
> Cheers,
> 
> Ben.
> 
> -- 
> Ben Laurie                Phone: +44 (181) 994 6435  Email:
> ben@algroup.co.uk
> Freelance Consultant and  Fax:   +44 (181) 994 6472
> Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
> A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
> London, England.          Apache-SSL author
> 


Mime
View raw message