Commit 81dbea94 authored by David S. Miller's avatar David S. Miller

In Sparc{,64} signal handling, tsk->p_pptr --> tsk->parent

parent 691785fa
......@@ -1195,8 +1195,8 @@ asmlinkage int do_signal(sigset_t *oldset, struct pt_regs * regs,
info.si_signo = signr;
info.si_errno = 0;
info.si_code = SI_USER;
info.si_pid = current->p_pptr->pid;
info.si_uid = current->p_pptr->uid;
info.si_pid = current->parent->pid;
info.si_uid = current->parent->uid;
}
/* If the (new) signal is now blocked, requeue it. */
......@@ -1245,7 +1245,7 @@ asmlinkage int do_signal(sigset_t *oldset, struct pt_regs * regs,
current->exit_code = signr;
/* notify_parent() is SMP safe */
if(!(current->p_pptr->sig->action[SIGCHLD-1].sa.sa_flags &
if(!(current->parent->sig->action[SIGCHLD-1].sa.sa_flags &
SA_NOCLDSTOP))
notify_parent(current, SIGCHLD);
schedule();
......
......@@ -729,8 +729,8 @@ static int do_signal(sigset_t *oldset, struct pt_regs * regs,
info.si_signo = signr;
info.si_errno = 0;
info.si_code = SI_USER;
info.si_pid = current->p_pptr->pid;
info.si_uid = current->p_pptr->uid;
info.si_pid = current->parent->pid;
info.si_uid = current->parent->uid;
}
/* If the (new) signal is now blocked, requeue it. */
......@@ -772,7 +772,7 @@ static int do_signal(sigset_t *oldset, struct pt_regs * regs,
struct signal_struct *sig;
current->exit_code = signr;
sig = current->p_pptr->sig;
sig = current->parent->sig;
preempt_disable();
current->state = TASK_STOPPED;
if (sig && !(sig->action[SIGCHLD-1].sa.sa_flags &
......
......@@ -1403,8 +1403,8 @@ int do_signal32(sigset_t *oldset, struct pt_regs * regs,
info.si_signo = signr;
info.si_errno = 0;
info.si_code = SI_USER;
info.si_pid = current->p_pptr->pid;
info.si_uid = current->p_pptr->uid;
info.si_pid = current->parent->pid;
info.si_uid = current->parent->uid;
}
/* If the (new) signal is now blocked, requeue it. */
......@@ -1446,7 +1446,7 @@ int do_signal32(sigset_t *oldset, struct pt_regs * regs,
struct signal_struct *sig;
current->exit_code = signr;
sig = current->p_pptr->sig;
sig = current->parent->sig;
preempt_disable();
current->state = TASK_STOPPED;
if (sig && !(sig->action[SIGCHLD-1].sa.sa_flags &
......
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