Ticket #3997: code clean up before 4.8.24 release.

(subshell_handle_cons_saver): don't call waitpid() twice.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-09-03 17:00:43 +03:00
parent 2cf2a183ec
commit 48ec7c3d8a

View File

@ -71,7 +71,6 @@ subshell_handle_cons_saver (void)
pid_t pid; pid_t pid;
pid = waitpid (cons_saver_pid, &status, WUNTRACED | WNOHANG); pid = waitpid (cons_saver_pid, &status, WUNTRACED | WNOHANG);
waitpid (cons_saver_pid, &status, WUNTRACED | WNOHANG);
if (pid == cons_saver_pid) if (pid == cons_saver_pid)
{ {