[CRIU] [PATCH 3/4] restore: Don't ignore errors on wait in restore_one_zombie

Cyrill Gorcunov gorcunov at gmail.com
Fri Dec 7 14:57:11 MSK 2018


Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/cr-restore.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index ea4a599b303c..4153ee5535bf 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -1024,7 +1024,8 @@ static int restore_one_zombie(CoreEntry *core)
 	prctl(PR_SET_NAME, (long)(void *)core->tc->comm, 0, 0, 0);
 
 	if (task_entries != NULL) {
-		wait_exiting_children("zombie");
+		if (wait_exiting_children("zombie"))
+			return -1;
 		zombie_prepare_signals();
 	}
 
-- 
2.17.2



More information about the CRIU mailing list