Commit d14abcf7 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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

This old info is simply not used at that place.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
parent 1a801c6d
......@@ -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;
......
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