diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2014-01-09 03:10:43 -0800 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2014-01-09 03:10:43 -0800 |
| commit | 6aaebeef40d876910cd3a7fc84bf04ae82f77444 (patch) | |
| tree | 8100b87ea48f55f147da3592d85e7415cba875dc /fcgiwrap.c | |
| parent | 906c4cdc3ff19ff7eb250fcc9904073fdfa02739 (diff) | |
| parent | 7f16d49028602df491aab42286875b60a5290364 (diff) | |
Merge pull request #20 from Lekensteyn/fix-bug-18
prefork: Fix 100% CPU usage in parent process
Diffstat (limited to 'fcgiwrap.c')
| -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--; |
