aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorDavid Hotham <david.hotham@metaswitch.com>2018-07-14 14:09:38 +0100
committerDavid Hotham <david.hotham@metaswitch.com>2018-07-14 14:18:34 +0100
commitdee2bf7b52b8841a9281bb80ef98539a421af513 (patch)
tree034fef010c19a3b3c457f61a07356b9f6c33b3d0 /src/nvim/os/pty_process_unix.c
parent4874214139ab86f7033d5e6c602f7515ed813443 (diff)
downloadrneovim-dee2bf7b52b8841a9281bb80ef98539a421af513.tar.gz
rneovim-dee2bf7b52b8841a9281bb80ef98539a421af513.tar.bz2
rneovim-dee2bf7b52b8841a9281bb80ef98539a421af513.zip
Check all child processes for exit in SIGCHLD handler
If a second and third child exit while we are already in the handler, we will only see a single additional SIGCHLD. Therefore the handler must not stop after processing a single child but should check all children. Fixes #8740
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index 2aeaafe4bd..bafbfe1e4b 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -291,6 +291,5 @@ static void chld_handler(uv_signal_t *handle, int signum)
proc->status = WTERMSIG(stat);
}
proc->internal_exit_cb(proc);
- break;
}
}