Commit 47f3b889 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Pavel Emelyanov

restore: fix sys_wait4 error handling in case no child

Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent dc8261ce
......@@ -1024,7 +1024,7 @@ static int wait_helpers(struct task_restore_args *task_args)
pid_t pid = task_args->helpers[i];
/* Check that a helper completed. */
if (sys_wait4(pid, &status, 0, NULL) == -1) {
if (sys_wait4(pid, &status, 0, NULL) == -ECHILD) {
/* It has been waited in sigchld_handler */
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment