mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
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:
parent
2cf2a183ec
commit
48ec7c3d8a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user