diff options
author | Grzegorz Nosek <root@localdomain.pl> | 2014-01-09 03:10:43 -0800 |
---|---|---|
committer | Grzegorz Nosek <root@localdomain.pl> | 2014-01-09 03:10:43 -0800 |
commit | 66e7b7d978185db7e19f21caf1da55850490046a (patch) | |
tree | 8100b87ea48f55f147da3592d85e7415cba875dc | |
parent | 4b2151ef965bfcf90b9ebdcf759a5f788368116f (diff) | |
parent | 2041deb6da8825095e007cd5638abd6ffc4f3a4e (diff) | |
download | fcgiwrap-66e7b7d978185db7e19f21caf1da55850490046a.tar.xz fcgiwrap-66e7b7d978185db7e19f21caf1da55850490046a.zip |
Merge pull request #20 from Lekensteyn/fix-bug-18
prefork: Fix 100% CPU usage in parent process
-rw-r--r-- | fcgiwrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -623,7 +623,7 @@ static void sigchld_handler(int dummy) { int status; - while ((dummy = waitpid(-1, &status, WNOHANG)) != -1) { + while ((dummy = waitpid(-1, &status, WNOHANG)) > 0) { /* sanity check */ if (nrunning > 0) nrunning--; |