]> granicus.if.org Git - apache/commitdiff
John's patches to provide depreciated messages for the -i and -u
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 3 Nov 2000 04:39:41 +0000 (04:39 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 3 Nov 2000 04:39:41 +0000 (04:39 +0000)
  options (now -k install|uninstall), and best yet, restart the console
  mode server on Ctrl+Break (Ctrl+C still stops it.)
  At least this is the second half - sorry I missed a bit.

Submitted by: John Sterling <sterling@covalent.net>
Reviewed by: William Rowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86821 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/service.c

index 6c40192a586370303023bb76f94b82f51f26c8aa..b02b2d98ce31de30057dc05cc76ca91e07296415 100644 (file)
@@ -285,8 +285,11 @@ static BOOL CALLBACK console_control_handler(DWORD ctrl_type)
 {
     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