[CRIU] [PATCH] restore: decode exit status in sigchld_handler
Andrey Vagin
avagin at openvz.org
Mon Aug 26 08:33:44 EDT 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-restore.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cr-restore.c b/cr-restore.c
index d894ad0..14bf300 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -958,6 +958,8 @@ static void sigchld_handler(int signal, siginfo_t *siginfo, void *data)
pid = waitpid(root_item->pid.real, &status, WNOHANG);
if (pid <= 0)
return;
+ exit = WIFEXITED(status);
+ status = exit ? WEXITSTATUS(status) : WTERMSIG(status);
}
if (!current || status)
--
1.8.3.1
More information about the CRIU
mailing list