You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2001/04/03 21:12:16 UTC

cvs commit: httpd-2.0/modules/generators mod_cgid.c

trawick     01/04/03 12:12:16

  Modified:    modules/generators mod_cgid.c
  Log:
  clean up some mod_cgid issues related to other child maintenance...
  
    the APR_OC_REASON_DEATH/APR_OC_REASON_LOST code was sending SIGWINCH
    to the parent (usually init) instead of itself
  
    APR_OC_REASON_RESTART/_UNREGISTER code separated so that we go through
    there once
  
  Revision  Changes    Path
  1.83      +3 -1      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.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- mod_cgid.c	2001/03/29 03:23:44	1.82
  +++ mod_cgid.c	2001/04/03 19:12:14	1.83
  @@ -236,9 +236,11 @@
               /* stop gap to make sure everything else works.  In the end,
                * we'll just restart the cgid server. */
               apr_pool_destroy(pcgi);
  -            kill(getppid(), SIGWINCH);
  +            kill(getpid(), SIGWINCH); /* yes, to ourself */
               break;
           case APR_OC_REASON_RESTART:
  +            apr_proc_other_child_unregister(data);
  +            break;
           case APR_OC_REASON_UNREGISTER:
               apr_pool_destroy(pcgi);
               kill(*sd, SIGHUP);