httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject worker MPM: close_worker_sockets race?
Date Thu, 22 Oct 2009 01:08:52 GMT
Looking at this function in worker.c:
----------------
static void close_worker_sockets(void)
{
    int i;
    for (i = 0; i < ap_threads_per_child; i++) {
        if (worker_sockets[i]) {
            apr_socket_close(worker_sockets[i]);
            worker_sockets[i] = NULL;
        }
    }
}
----------------

Isn't there are possible race condition there, given that worker threads
can also change worker_sockets[i] at the same time? Or are we suspending
worker threads before this gets called?

-- 
Bojan


Mime
View raw message