Line 0
Link Here
|
|
|
1 |
--- common/misc.c.orig Sat May 8 15:31:29 2004 |
2 |
+++ common/misc.c Sat May 8 15:31:49 2004 |
3 |
@@ -237,13 +237,13 @@ |
4 |
#ifndef WIN32 |
5 |
ChildProcess* cp=FirstChild; |
6 |
ChildProcess* last=NULL; |
7 |
+ ChildProcess* next; |
8 |
for (;;){ |
9 |
if (!cp) |
10 |
return; /*no child to monitor*/ |
11 |
if (waitpid(cp->pid,NULL,WNOHANG)){ |
12 |
/*pid is dead*/ |
13 |
LOG(LOG_INFO,"common::monitorChilds","Child %s died. Removing and closing pipes",cp->name?cp->name:"UNKNOWN"); |
14 |
- ChildProcess* next; |
15 |
if (cp==LastChild) |
16 |
LastChild=last; |
17 |
next=cp->next; |