Commit e44f4e7a authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

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: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b674caf2
......@@ -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);
......
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