1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix the build on 4.x.

PR:		ports/66388
Submitted by:	Mark Daniel Reidel <ports@mark.reidel.info> (maintainer)
Approved by:	adamw (mentor)
This commit is contained in:
Jeremy Messenger 2004-05-11 04:41:44 +00:00
parent bed169f0da
commit 43c47254b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108886

View File

@ -0,0 +1,17 @@
--- 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;