httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject RE: [PATCH] get worker to wait for workers to exit even for graceless
Date Wed, 01 May 2002 14:00:23 GMT
> From: trawick@rdu88-250-035.nc.rr.com
> [mailto:trawick@rdu88-250-035.nc.rr.com]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).

I think it is perfectly acceptable to wait for the server to shutdown.
One of the reasons to do an ungraceful termination is to close the open
connections, which we do now.  If our backend needs to cleanup, so be it,
we have to wait.  If you can't, resort to more drastic stuff like kill -9,
but prepare to cleanup the mess that it might leave behind.

Sander


Mime
View raw message