You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2003/11/26 19:47:18 UTC

cvs commit: httpd-2.0/server/mpm/netware mpm_netware.c

bnicholes    2003/11/26 10:47:18

  Modified:    server/mpm/netware Tag: APACHE_2_0_BRANCH mpm_netware.c
  Log:
  Add restart and shutdown thread counters to the console display
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.62.2.12 +6 -3      httpd-2.0/server/mpm/netware/mpm_netware.c
  
  Index: mpm_netware.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/netware/mpm_netware.c,v
  retrieving revision 1.62.2.11
  retrieving revision 1.62.2.12
  diff -u -r1.62.2.11 -r1.62.2.12
  --- mpm_netware.c	5 Sep 2003 22:55:04 -0000	1.62.2.11
  +++ mpm_netware.c	26 Nov 2003 18:47:18 -0000	1.62.2.12
  @@ -962,9 +962,11 @@
           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 @@
   		    "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");