From: Bradley Nicholes Date: Wed, 26 Nov 2003 18:48:56 +0000 (+0000) Subject: Add restart and shutdown thread counters to the console display X-Git-Tag: pre_ajp_proxy~993 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1c97e790bec68fecfa46784a820029a500118eb;p=apache Add restart and shutdown thread counters to the console display git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101902 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index 8be51cc6d5..148d15f650 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -962,9 +962,11 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf, "caught SIGTERM, shutting down"); - DBPRINT0 ("Shutdown pending. Waiting for threads to terminate...\n"); - while (worker_thread_count > 0) + while (worker_thread_count > 0) { + printf ("\rShutdown pending. Waiting for %d thread(s) to terminate...", + worker_thread_count); apr_thread_yield(); + } return 1; } @@ -980,8 +982,9 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) "Graceful restart requested, doing restart"); /* Wait for all of the threads to terminate before initiating the restart */ - DBPRINT0 ("Restart pending. Waiting for threads to terminate...\n"); while (worker_thread_count > 0) { + printf ("Restart pending. Waiting for %d thread(s) to terminate...", + worker_thread_count); apr_thread_yield(); } DBPRINT0 ("restarting...\n");