httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgid.c
Date Thu, 14 Feb 2002 02:49:07 GMT
aaron       02/02/13 18:49:07

  Modified:    modules/generators mod_cgid.c
  Log:
  Fix other_child logic that would cause the mod_cgid process not
  to properly die when the parent process shuts down.
  
  Revision  Changes    Path
  1.113     +2 -3      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.112
  retrieving revision 1.113
  diff -u -r1.112 -r1.113
  --- mod_cgid.c	1 Feb 2002 22:08:34 -0000	1.112
  +++ mod_cgid.c	14 Feb 2002 02:49:07 -0000	1.113
  @@ -245,7 +245,9 @@
   
       switch (reason) {
           case APR_OC_REASON_DEATH:
  +        case APR_OC_REASON_RESTART:
               /* don't do anything; server is stopping or restarting */
  +            apr_proc_other_child_unregister(data);
               break;
           case APR_OC_REASON_LOST:
               /* it would be better to restart just the cgid child
  @@ -254,9 +256,6 @@
                * parent process
                */
               kill(getpid(), AP_SIG_GRACEFUL);
  -            break;
  -        case APR_OC_REASON_RESTART:
  -            apr_proc_other_child_unregister(data);
               break;
           case APR_OC_REASON_UNREGISTER:
               /* we get here when pcgi is cleaned up; pcgi gets cleaned
  
  
  

Mime
View raw message