diff options
author | mezz <mezz@FreeBSD.org> | 2004-05-11 12:41:44 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2004-05-11 12:41:44 +0800 |
commit | cf1324e235a34a98b46e99137275cc6d893bba38 (patch) | |
tree | fd59019ef93d0650381fe951d0d2374e9a08ba50 /games/crossfire-client | |
parent | b7e6e18e7f737feb43758a94ecf603dfb7d717a0 (diff) | |
download | freebsd-ports-gnome-cf1324e235a34a98b46e99137275cc6d893bba38.tar.gz freebsd-ports-gnome-cf1324e235a34a98b46e99137275cc6d893bba38.tar.zst freebsd-ports-gnome-cf1324e235a34a98b46e99137275cc6d893bba38.zip |
Fix the build on 4.x.
PR: ports/66388
Submitted by: Mark Daniel Reidel <ports@mark.reidel.info> (maintainer)
Approved by: adamw (mentor)
Diffstat (limited to 'games/crossfire-client')
-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; |