Commit bc7d6e31 authored by Pavel Emelyanov's avatar Pavel Emelyanov

sig: Don't feed pid argument to prepare_sigactions

We don't need pid in any of these calls actually, they are
all legacy from the old days. I plan to move the call to
prepare_sigactions, so remove the pid argument in advance.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
parent d14abcf7
......@@ -616,8 +616,9 @@ static int open_vmas(int pid)
}
static rt_sigaction_t sigchld_act;
static int prepare_sigactions(int pid)
static int prepare_sigactions(void)
{
int pid = current->pid.virt;
rt_sigaction_t act;
int fd_sigact;
SaEntry *e;
......@@ -717,7 +718,7 @@ static int restore_one_alive_task(int pid, CoreEntry *core)
if (prepare_file_locks(pid))
return -1;
if (prepare_sigactions(pid))
if (prepare_sigactions())
return -1;
if (open_vmas(pid))
......
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