]> granicus.if.org Git - apache/commitdiff
Take advantage of the new usable apr_thread_exit().
authorAaron Bannert <aaron@apache.org>
Thu, 27 Dec 2001 17:06:40 +0000 (17:06 +0000)
committerAaron Bannert <aaron@apache.org>
Thu, 27 Dec 2001 17:06:40 +0000 (17:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92622 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/worker/worker.c

index aeebad24ba33d6ca58eaa47f390206159e16d271..4978e95a3daabee85e71357c2443c4e5e37b4a78 100644 (file)
@@ -750,9 +750,7 @@ static void *listener_thread(apr_thread_t *thd, void * dummy)
     ap_scoreboard_image->parent[process_slot].quiescing = 1;
     kill(ap_my_pid, SIGTERM);
 
-/* Unsure if this can be safely uncommented. -aaron
     apr_thread_exit(thd, APR_SUCCESS);
-*/
     return NULL;
 }
 
@@ -789,8 +787,7 @@ static void *worker_thread(apr_thread_t *thd, void * dummy)
     worker_thread_count--;
     apr_thread_mutex_unlock(worker_thread_count_mutex);
 
-    rv = APR_SUCCESS;
-    apr_thread_exit(thd, &rv);
+    apr_thread_exit(thd, APR_SUCCESS);
     return NULL;
 }
 
@@ -879,8 +876,7 @@ 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
      */
-    rv = APR_SUCCESS;
-    apr_thread_exit(thd, &rv);
+    apr_thread_exit(thd, APR_SUCCESS);
     return NULL;
 }