2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

restore: restore sigaction for alive tasks

The helper task doesn't change sigaction and does nothing with
parent_sigacts. paren_sigacts will contain values for the previous alive
task, so the logic about inherence should work as expected.

Reported-by: Jenkins Criuovich
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrew Vagin
2014-08-07 11:50:00 +04:00
committed by Pavel Emelyanov
parent b674caf2ff
commit e44f4e7acd

View File

@@ -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);