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