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

server/mpm/netware/mpm_netware.c

index 4c206ab42f728c59a60c55b06e80d64abeffc3f5..4a24e417ba93a381883b6146e0dd99560f8c6ce6 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");