httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/mpm/winnt service.c
Date Fri, 03 Nov 2000 04:39:42 GMT
wrowe       00/11/02 20:39:42

  Modified:    src/modules/mpm/winnt service.c
  Log:
    John's patches to provide depreciated messages for the -i and -u
    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
  
  Revision  Changes    Path
  1.25      +4 -1      apache-2.0/src/modules/mpm/winnt/service.c
  
  Index: service.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/mpm/winnt/service.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- service.c	2000/10/06 17:24:42	1.24
  +++ service.c	2000/11/03 04:39:41	1.25
  @@ -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