]> granicus.if.org Git - apache/commitdiff
Add restart and shutdown thread counters to the console display
authorBradley Nicholes <bnicholes@apache.org>
Wed, 26 Nov 2003 18:48:56 +0000 (18:48 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Wed, 26 Nov 2003 18:48:56 +0000 (18:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101902 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/netware/mpm_netware.c

index 8be51cc6d5667514d2f7d1b70e4940680e881f67..148d15f650544d499447bd00b0ce55dec83e4fac 100644 (file)
@@ -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");