]> granicus.if.org Git - apache/commitdiff
This fixes a segfault that showed up on BeOS and may catch other systems.
authorDavid Reid <dreid@apache.org>
Sun, 23 Dec 2001 13:56:49 +0000 (13:56 +0000)
committerDavid Reid <dreid@apache.org>
Sun, 23 Dec 2001 13:56:49 +0000 (13:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92581 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/worker/worker.c

index 0a0f0d007ffd61b32b89ba0dae005fef1729d8a1..52905285653f8fae2042ed0f2712e2a5799c54f9 100644 (file)
@@ -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;
 }