httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [PATCH] get worker to wait for workers to exit even for graceless
Date Wed, 01 May 2002 14:03:37 GMT
"Sander Striker" <> writes:

> > From:
> > []On Behalf Of Jeff Trawick
> > Sent: 01 May 2002 15:36
> > If somebody wants to play, this is perhaps all that is necessary.  I
> > need to straighten out a test script problem on the machine that
> > regularly exhibits the segfault, then try this out there.
> > 
> > The caveat with this is that if a worker thread is doing
> > time-consuming processing (e.g., lengthy database transaction) then
> > the pthread_join will hang for a while and the parent will probably
> > nail us.
> Meaning? (I hope there isn't a short timeout on the join).

meaning that the parent process will give up on us ever exiting and
will send SIGKILL

there is no timeout on the join

> I think it is perfectly acceptable to wait for the server to shutdown.

The long-standing design is that the parent process first tries
sending SIGTERM to children but will give up after a while and send
SIGKILL if the child is hung somewhere.

Jeff Trawick |
Born in Roswell... married an alien...

View raw message