From e0b550b5f0480a3e008a2cb2d49368f1f1aca07c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 11 Jul 2015 23:06:44 +0200 Subject: 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. --- src/nvim/os/job.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/nvim/os/job.c b/src/nvim/os/job.c index 4769ee4d2f..f9bde21361 100644 --- a/src/nvim/os/job.c +++ b/src/nvim/os/job.c @@ -445,11 +445,6 @@ static void chld_handler(uv_signal_t *handle, int signum) return; } - if (WIFSTOPPED(stat) || WIFCONTINUED(stat)) { - // Only care for processes that exited - return; - } - Job *job = NULL; // find the job corresponding to the exited pid for (int i = 0; i < MAX_RUNNING_JOBS; i++) { -- cgit