mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
c80ebfff82
commit
e0b550b5f0
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user