From: Cliff Woolley Date: Fri, 5 Sep 2003 22:46:17 +0000 (+0000) Subject: revert my previous commit. when 2.0 and 2.1 were not in sync, i went with X-Git-Tag: pre_ajp_proxy~1181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad4ef6a24cbf20df23770add748ff69811802b5f;p=apache revert my previous commit. when 2.0 and 2.1 were not in sync, i went with what was in 2.0 because it was more recent, but it turns out that was the wrong choice. reverts to 2.0 to follow git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101173 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index 172380057a..8be51cc6d5 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -212,10 +212,12 @@ static int volatile wait_to_finish=1; ap_generation_t volatile ap_my_generation=0; /* a clean exit from a child with proper cleanup */ -static void clean_child_exit(int code, int worker_num, apr_pool_t *ptrans) - __attribute__ ((noreturn)); -static void clean_child_exit(int code, int worker_num, apr_pool_t *ptrans) +static void clean_child_exit(int code, int worker_num, apr_pool_t *ptrans, + apr_bucket_alloc_t *bucket_alloc) __attribute__ ((noreturn)); +static void clean_child_exit(int code, int worker_num, apr_pool_t *ptrans, + apr_bucket_alloc_t *bucket_alloc) { + apr_bucket_alloc_destroy(bucket_alloc); if (!shutdown_pending) { apr_pool_destroy(ptrans); } @@ -400,7 +402,7 @@ void worker_main(void *arg) if ((ap_max_requests_per_child > 0 && requests_this_child++ >= ap_max_requests_per_child)) { DBPRINT1 ("\n**Thread slot %d is shutting down", my_worker_num); - clean_child_exit(0, my_worker_num, ptrans); + clean_child_exit(0, my_worker_num, ptrans, bucket_alloc); } ap_update_child_status_from_indexes(0, my_worker_num, WORKER_READY, @@ -413,7 +415,7 @@ void worker_main(void *arg) for (;;) { if (shutdown_pending || restart_pending || (ap_scoreboard_image->servers[0][my_worker_num].status == WORKER_IDLE_KILL)) { DBPRINT1 ("\nThread slot %d is shutting down\n", my_worker_num); - clean_child_exit(0, my_worker_num, ptrans); + clean_child_exit(0, my_worker_num, ptrans, bucket_alloc); } /* Check the listen queue on all sockets for requests */ @@ -522,12 +524,13 @@ void worker_main(void *arg) */ ap_log_error(APLOG_MARK, APLOG_EMERG, stat, ap_server_conf, "apr_socket_accept: giving up."); - clean_child_exit(APEXIT_CHILDFATAL, my_worker_num, ptrans); + clean_child_exit(APEXIT_CHILDFATAL, my_worker_num, ptrans, + bucket_alloc); } else { ap_log_error(APLOG_MARK, APLOG_ERR, stat, ap_server_conf, "apr_socket_accept: (client socket)"); - clean_child_exit(1, my_worker_num, ptrans); + clean_child_exit(1, my_worker_num, ptrans, bucket_alloc); } } } @@ -546,7 +549,7 @@ void worker_main(void *arg) } request_count++; } - clean_child_exit(0, my_worker_num, ptrans); + clean_child_exit(0, my_worker_num, ptrans, bucket_alloc); }