rbb         01/09/20 19:59:37

  Modified:    misc/unix otherchild.c
  Log:
  We need to refer to the pid itself, not the apr_proc_t
  
  Revision  Changes    Path
  1.26      +2 -2      apr/misc/unix/otherchild.c
  
  Index: otherchild.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/unix/otherchild.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- otherchild.c      2001/09/20 20:48:26     1.25
  +++ otherchild.c      2001/09/21 02:59:37     1.26
  @@ -194,8 +194,8 @@
           if (ocr->proc == NULL)
               continue;
   
  -        waitret = waitpid(ocr->proc, &status, WNOHANG);
  -        if (waitret == ocr->proc) {
  +        waitret = waitpid(ocr->proc->pid, &status, WNOHANG);
  +        if (waitret == ocr->proc->pid) {
               ocr->proc = NULL;
               (*ocr->maintenance) (APR_OC_REASON_DEATH, ocr->data, status);
           }
  
  
  

Reply via email to