aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2004-05-11 04:41:44 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2004-05-11 04:41:44 +0000
commit43c47254b5f4f8c9ba5a4a0021207bd45e9da253 (patch)
treebf7141f3907cee44d22723f22c3e0caa75149207 /games
parentbed169f0dac3e81b1da0fb74df94a00250773eb4 (diff)
downloadports-43c47254b5f4f8c9ba5a4a0021207bd45e9da253.tar.gz
ports-43c47254b5f4f8c9ba5a4a0021207bd45e9da253.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/crossfire-client/files/patch-common::misc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/crossfire-client/files/patch-common::misc.c b/games/crossfire-client/files/patch-common::misc.c
new file mode 100644
index 000000000000..ce7017952be4
--- /dev/null
+++ b/games/crossfire-client/files/patch-common::misc.c
@@ -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;