]> granicus.if.org Git - psmisc/commitdiff
waitpid for fuser to stop zombies
authorCraig Small <csmall@users.sourceforge.net>
Fri, 28 Oct 2011 23:42:43 +0000 (10:42 +1100)
committerCraig Small <csmall@users.sourceforge.net>
Fri, 28 Oct 2011 23:42:43 +0000 (10:42 +1100)
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387
Bug-Sourceforge:
https://sourceforge.net/tracker/?func=detail&aid=3429674&group_id=15273&atid=115273

Patch by Peter Holik for using waitpid to stop zombies.

ChangeLog
src/fuser.c

index 4217a09f50b3b5feb45558e50dbf107b1f47c678..9a953ff636f607ed00e13704c2f61afb2f96bac0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,11 @@
 Changes in 22.15
 ================
        * Really apply patch for SF#31110178 RH#651794
-       * Conditionally use fork before stat calls
+       * Conditionally use fork before stat calls SF#3427522
        * Patch from Corrina Vinschen for compiling on cygwin
+       * Use ENOENT not EBADE for FreeBSD Debian #631566
+       * Fix prstat typos
+       * Stop zombies by using waitpid Ubuntu #876387 by Peter Holik
 
 Changes in 22.14
 ================
index d687b1f943f837b25756a35420c40d5a88b2f203..d5a50d8ef6c09143b240b2a7d53d0a874b1dcd49 100644 (file)
@@ -1835,6 +1835,7 @@ timeout(stat_t func, const char *path, struct stat *buf, unsigned int seconds)
                (void) alarm(0);
                (void) signal(SIGALRM, SIG_DFL);
                close(pipes[0]);
+        waitpid(pid, NULL, 0);
                break;
        }
        return ret;