43c47254b5
PR: ports/66388 Submitted by: Mark Daniel Reidel <ports@mark.reidel.info> (maintainer) Approved by: adamw (mentor)
17 lines
619 B
C
17 lines
619 B
C
--- common/misc.c.orig Sat May 8 15:31:29 2004
|
|
+++ common/misc.c Sat May 8 15:31:49 2004
|
|
@@ -237,13 +237,13 @@
|
|
#ifndef WIN32
|
|
ChildProcess* cp=FirstChild;
|
|
ChildProcess* last=NULL;
|
|
+ ChildProcess* next;
|
|
for (;;){
|
|
if (!cp)
|
|
return; /*no child to monitor*/
|
|
if (waitpid(cp->pid,NULL,WNOHANG)){
|
|
/*pid is dead*/
|
|
LOG(LOG_INFO,"common::monitorChilds","Child %s died. Removing and closing pipes",cp->name?cp->name:"UNKNOWN");
|
|
- ChildProcess* next;
|
|
if (cp==LastChild)
|
|
LastChild=last;
|
|
next=cp->next;
|