httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48094] Avoid a race condition in close_worker_sockets()
Date Tue, 10 Nov 2009 10:11:48 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48094

Bojan Smojver <bojan@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24453|0                           |1
        is obsolete|                            |

--- Comment #5 from Bojan Smojver <bojan@rexursive.com> 2009-11-10 02:11:46 UTC ---
Created an attachment (id=24510)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24510)
(Hopefully) safe close_worker_sockets()

Simpler and safer patch. Instead of suspending workers (which may hang the
server in some corner cases), we simply send signals to worker threads. Once
the signal handler is executed for a worker thread, we are guaranteed that the
other worker code isn't going to be executing, so we avoid the race.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message