On 24 Apr 2001, Jeff Trawick wrote:
> > 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
> patch.
>
> 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?)
The parent should not know anything about workers_may_exit. If the parent
sends a message through pipe_of_death, then the thread that gets that
message should be setting workers_may_exit.
This removes the parent from the equation at all.
Ryan
_______________________________________________________________________________
Ryan Bloom [EMAIL PROTECTED]
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------