Remove dead WIFSTOPPED and WIFCONTINUED checks

These macros would never return true since the preceding waitpid() call
did not specify the WUNTRACED or WCONTINUED options (which is correct
since we only care for processes that exited here).

Besides removing dead code, this improves portability since WIFCONTINUED
is not defined on all platforms.
This commit is contained in:
Fredrik Fornwall 2015-07-11 23:06:44 +02:00 committed by Thiago de Arruda
parent c80ebfff82
commit e0b550b5f0

View File

@ -445,11 +445,6 @@ static void chld_handler(uv_signal_t *handle, int signum)
return; return;
} }
if (WIFSTOPPED(stat) || WIFCONTINUED(stat)) {
// Only care for processes that exited
return;
}
Job *job = NULL; Job *job = NULL;
// find the job corresponding to the exited pid // find the job corresponding to the exited pid
for (int i = 0; i < MAX_RUNNING_JOBS; i++) { for (int i = 0; i < MAX_RUNNING_JOBS; i++) {