[CRIU] [PATCH] restore: restore sigaction for alive tasks

Andrew Vagin avagin at openvz.org
Thu Aug 7 00:50:46 PDT 2014


Reported-by: Jenkins Criuovich
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 cr-restore.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cr-restore.c b/cr-restore.c
index cb858c9..1b538e1 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -641,6 +641,12 @@ static int prepare_sigactions(void)
 	int sig, rst = 0;
 	int ret = 0;
 
+	switch (current->state) {
+	case TASK_HELPER:
+	case TASK_DEAD:
+		return 0;
+	}
+
 	pr_info("Restore sigacts for %d\n", pid);
 
 	fd_sigact = open_image(CR_FD_SIGACT, O_RSTR, pid);
-- 
1.9.3



More information about the CRIU mailing list