Commit b674caf2 authored by Pavel Emelyanov's avatar Pavel Emelyanov

sig: Add some logging to sigactions restore

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 50f712e9
......@@ -638,9 +638,11 @@ static int prepare_sigactions(void)
rt_sigaction_t act;
int fd_sigact;
SaEntry *e;
int sig;
int sig, rst = 0;
int ret = 0;
pr_info("Restore sigacts for %d\n", pid);
fd_sigact = open_image(CR_FD_SIGACT, O_RSTR, pid);
if (fd_sigact < 0)
return -1;
......@@ -688,8 +690,12 @@ static int prepare_sigactions(void)
}
parent_act[sig] = act;
rst++;
}
pr_info("Restored %d/%d sigacts\n", rst,
SIGMAX - 3 /* KILL, STOP and CHLD */);
err:
close_safe(&fd_sigact);
return ret;
......
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