From: Paul Querna Date: Tue, 15 Nov 2011 15:52:00 +0000 (+0000) Subject: Because the pollset is now only mutated from the event thread, we no longer need... X-Git-Tag: 2.5.0-alpha~7886 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42b4817c8ee331f780a37fbd748bc7a00623c9b0;p=apache Because the pollset is now only mutated from the event thread, we no longer need the APR_POLLSET_THREADSAFE flag for the event_pollset git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1202258 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index 5d8fbbfc3b..c20f387ec3 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -1944,7 +1944,7 @@ static void *APR_THREAD_FUNC start_threads(apr_thread_t * thd, void *dummy) * connections in K-A or lingering * close? */ - pchild, APR_POLLSET_THREADSAFE | APR_POLLSET_NOCOPY); + pchild, APR_POLLSET_NOCOPY); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, rv, ap_server_conf, "apr_pollset_create with Thread Safety failed."); @@ -2860,10 +2860,10 @@ static int event_pre_config(apr_pool_t * pconf, apr_pool_t * plog, ++retained->module_loads; if (retained->module_loads == 2) { rv = apr_pollset_create(&event_pollset, 1, plog, - APR_POLLSET_THREADSAFE | APR_POLLSET_NOCOPY); + APR_POLLSET_NOCOPY); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL, - "Couldn't create a Thread Safe Pollset. " + "Couldn't create a suiteable pollset. " "Is it supported on your platform?" "Also check system or user limits!"); return HTTP_INTERNAL_SERVER_ERROR;