mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +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:
parent
bed169f0da
commit
43c47254b5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108886
17
games/crossfire-client/files/patch-common::misc.c
Normal file
17
games/crossfire-client/files/patch-common::misc.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user