"Sander Striker" <[EMAIL PROTECTED]> writes: > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]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 | [EMAIL PROTECTED] Born in Roswell... married an alien...
