[CRIU] [PATCH 1/8] sig: Don't request for old act when restoring sigactions
Pavel Emelyanov
xemul at parallels.com
Wed Aug 6 05:23:59 PDT 2014
This old info is simply not used at that place.
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
cr-restore.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cr-restore.c b/cr-restore.c
index 9e2f61f..1cb659b 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -616,7 +616,7 @@ static int open_vmas(int pid)
static rt_sigaction_t sigchld_act;
static int prepare_sigactions(int pid)
{
- rt_sigaction_t act, oact;
+ rt_sigaction_t act;
int fd_sigact;
SaEntry *e;
int sig;
@@ -658,7 +658,7 @@ static int prepare_sigactions(int pid)
* A pure syscall is used, because glibc
* sigaction overwrites se_restorer.
*/
- ret = sys_sigaction(sig, &act, &oact, sizeof(k_rtsigset_t));
+ ret = sys_sigaction(sig, &act, NULL, sizeof(k_rtsigset_t));
if (ret == -1) {
pr_err("%d: Can't restore sigaction: %m\n", pid);
goto err;
--
1.8.4.2
More information about the CRIU
mailing list