httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/netware mpm_netware.c
Date Wed, 26 Nov 2003 18:48:56 GMT
bnicholes    2003/11/26 10:48:56

  Modified:    server/mpm/netware mpm_netware.c
  Log:
  Add restart and shutdown thread counters to the console display
  
  Revision  Changes    Path
  1.76      +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.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- mpm_netware.c	5 Sep 2003 22:46:17 -0000	1.75
  +++ mpm_netware.c	26 Nov 2003 18:48:56 -0000	1.76
  @@ -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");
  
  
  

Mime
View raw message