From: David Reid Date: Sun, 23 Dec 2001 13:56:49 +0000 (+0000) Subject: This fixes a segfault that showed up on BeOS and may catch other systems. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64f328938d634e9835258b0aeab5fcfb35d4d083;p=apache This fixes a segfault that showed up on BeOS and may catch other systems. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92581 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index 0a0f0d007f..5290528565 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -790,7 +790,8 @@ static void *worker_thread(apr_thread_t *thd, void * dummy) worker_thread_count--; apr_thread_mutex_unlock(worker_thread_count_mutex); - apr_thread_exit(thd, APR_SUCCESS); + rv = APR_SUCCESS; + apr_thread_exit(thd, &rv); return NULL; } @@ -879,7 +880,8 @@ static void *start_threads(apr_thread_t *thd, void *dummy) * "life_status" is almost right, but it's in the worker's structure, and * the name could be clearer. gla */ - apr_thread_exit(thd, APR_SUCCESS); + rv = APR_SUCCESS; + apr_thread_exit(thd, &rv); return NULL; }