httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John K. Sterling" <sterl...@covalent.net>
Subject [PATCH] win32 allow restart with ctrl-break
Date Thu, 02 Nov 2000 23:29:58 GMT
currently we allow ctrl-c to do a proper shutdown of a console win32
apache.  this patch allows ctrl-break to signal a restart.

sterling


Index: src/modules/mpm/winnt/service.c
===================================================================
RCS file: /home/cvspublic/apache-2.0/src/modules/mpm/winnt/service.c,v
retrieving revision 1.24
diff -u -r1.24 service.c
--- src/modules/mpm/winnt/service.c	2000/10/06 17:24:42	1.24
+++ src/modules/mpm/winnt/service.c	2000/11/02 23:23:44
@@ -285,8 +285,11 @@
 {
     switch (ctrl_type)
     {
-        case CTRL_C_EVENT:
         case CTRL_BREAK_EVENT:
+            fprintf(stderr, "Apache server restarting...\n");
+            signal_parent(1);
+            return TRUE;
+        case CTRL_C_EVENT:
             fprintf(stderr, "Apache server interrupted...\n");
             /* for Interrupt signals, shut down the server.
              * Tell the system we have dealt with the signal


Mime
View raw message