httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: worker MPM: close_worker_sockets race?
Date Sat, 31 Oct 2009 12:34:10 GMT
On Sat, 2009-10-31 at 23:00 +1100, Bojan Smojver wrote:
> +    /* wait to resume */
> +    while (suspend_workers) {
> +        apr_sleep(SCOREBOARD_MAINTENANCE_INTERVAL / 10);
> +    }

Er, that should be:

+    /* suspend and then wait to resume */
+    if (suspend_workers) {
+        worker_data[i].suspended = 1;
+
+        while (suspend_workers) {
+            apr_sleep(SCOREBOARD_MAINTENANCE_INTERVAL / 10);
+        }
+    }

-- 
Bojan


Mime
View raw message