From 48ec7c3d8a3c7a2c9cb28daa2f35c87362226a53 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 3 Sep 2019 17:00:43 +0300 Subject: [PATCH] Ticket #3997: code clean up before 4.8.24 release. (subshell_handle_cons_saver): don't call waitpid() twice. Signed-off-by: Andrew Borodin --- src/subshell/proxyfunc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/subshell/proxyfunc.c b/src/subshell/proxyfunc.c index 74fe4eeed..d271fd809 100644 --- a/src/subshell/proxyfunc.c +++ b/src/subshell/proxyfunc.c @@ -71,7 +71,6 @@ subshell_handle_cons_saver (void) pid_t pid; pid = waitpid (cons_saver_pid, &status, WUNTRACED | WNOHANG); - waitpid (cons_saver_pid, &status, WUNTRACED | WNOHANG); if (pid == cons_saver_pid) {