apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/misc/unix otherchild.c
Date Fri, 21 Sep 2001 02:59:37 GMT
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);
           }
  
  
  

Mime
View raw message