2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

sig: Don't request for old act when restoring sigactions

This old info is simply not used at that place.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Andrew Vagin <avagin@parallels.com>
This commit is contained in:
Pavel Emelyanov
2014-08-06 16:23:59 +04:00
parent 1a801c6ded
commit d14abcf7c3

View File

@@ -618,7 +618,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;
@@ -660,7 +660,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;