From dee2bf7b52b8841a9281bb80ef98539a421af513 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Sat, 14 Jul 2018 14:09:38 +0100 Subject: [PATCH] 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 --- src/nvim/os/pty_process_unix.c | 1 - 1 file changed, 1 deletion(-) 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; } }