aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Fornwall <fredrik@fornwall.net>2015-07-11 23:06:44 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2015-07-13 23:12:31 -0300
commite0b550b5f0480a3e008a2cb2d49368f1f1aca07c (patch)
treeedb83cdec1552db0be00269ad9889a4e0fec1a52
parentc80ebfff82d539d44815b1d36709ba573e4e38e8 (diff)
downloadrneovim-e0b550b5f0480a3e008a2cb2d49368f1f1aca07c.tar.gz
rneovim-e0b550b5f0480a3e008a2cb2d49368f1f1aca07c.tar.bz2
rneovim-e0b550b5f0480a3e008a2cb2d49368f1f1aca07c.zip
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.
-rw-r--r--src/nvim/os/job.c5
1 files changed, 0 insertions, 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++) {