httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [PATCH] get threaded MPM to terminate
Date Tue, 24 Apr 2001 17:43:44 GMT
> Why is this field going into the scoreboard?  This field is really private
> to the child process, and doesn't need to go into shared memory.
> Can't the problem describes above be solved with a simple
>       workers_may_exit = 1;
> at line 732 of threaded.c?

You're at least close to right.

You still have the problem that there is nothing to wake up the worker
threads; thus we need to write to the pipe of death as done in the

You need to guarantee that the flag checked by worker threads is set
before they wake up and potentially go back to sleep.  Therefore the
parent process needs to set it before writing on the pipe of death.
Since the parent process is writing it and the child process is
looking at it then it must be in the scoreboard.

(Where did I go astray here?)
Jeff Trawick | | PGP public key at web site:
             Born in Roswell... married an alien...

View raw message