diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2004-05-11 04:41:44 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2004-05-11 04:41:44 +0000 |
commit | 43c47254b5f4f8c9ba5a4a0021207bd45e9da253 (patch) | |
tree | bf7141f3907cee44d22723f22c3e0caa75149207 /games | |
parent | bed169f0dac3e81b1da0fb74df94a00250773eb4 (diff) | |
download | ports-43c47254b5f4f8c9ba5a4a0021207bd45e9da253.tar.gz ports-43c47254b5f4f8c9ba5a4a0021207bd45e9da253.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/crossfire-client/files/patch-common::misc.c | 17 |
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; |