[CRIU] [PATCH 9/9] sig: Add some logging to sigactions restore
Pavel Emelyanov
xemul at parallels.com
Wed Aug 6 05:25:53 PDT 2014
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
cr-restore.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/cr-restore.c b/cr-restore.c
index 0408aa3..4184bc5 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -636,9 +636,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;
@@ -686,8 +688,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;
--
1.8.4.2
More information about the CRIU
mailing list