httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <>
Subject Re: [Fwd: [Patch]: Scoreboard as linked list.]
Date Sat, 04 Aug 2001 14:43:50 GMT
Ryan Bloom wrote:
> 2)  I may be wrong, but I believe we have a race-condition.  find_child_by_pid walks
> scoreboard without locking it.  Since we call that function from the parent whenever
a child
> process dies, this looks like a chance for a seg fault, but I am still trying to figure
out what I
> am missing.  Rather than continue to look for my misunderstanding, can somebody explain
> to me?

You are correct. If a process dies and ends up in the find_child_by_pid code at the same time
that another neighboring process is exiting cleanly, there could be a seg-fault. I'll fix
the patch appropriately.

Paul J. Reder
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it.  Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein

View raw message