diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2003-11-26 18:48:56 +0000 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2003-11-26 18:48:56 +0000 |
commit | d1c97e790bec68fecfa46784a820029a500118eb (patch) | |
tree | e6cb12a494a72848254a8e007541cafb02b4be01 /server | |
parent | 2dbba35cc63ffe5537980931fa43fc3029c0cf9a (diff) | |
download | httpd-d1c97e790bec68fecfa46784a820029a500118eb.tar.gz |
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
Diffstat (limited to 'server')
-rw-r--r-- | server/mpm/netware/mpm_netware.c | 9 |
1 files changed, 6 insertions, 3 deletions
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"); |