From f43e48ddd60fd99379ca4701b7b365693d2e50fc Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Tue, 18 Feb 2003 05:45:48 -0800 Subject: [PATCH] [PATCH] fixup use of sighand in m68knommu signal.c This patch fixes the use of sighand for the m68knommu architecture. --- arch/m68knommu/kernel/signal.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/m68knommu/kernel/signal.c b/arch/m68knommu/kernel/signal.c index 755fcd37a756f..81e506f63b561 100644 --- a/arch/m68knommu/kernel/signal.c +++ b/arch/m68knommu/kernel/signal.c @@ -783,7 +783,7 @@ asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs) /* Restart the system call the same way as if the process were not traced. */ struct k_sigaction *ka = - ¤t->sig->action[signr-1]; + ¤t->sighand->action[signr-1]; int has_handler = (ka->sa.sa_handler != SIG_IGN && ka->sa.sa_handler != SIG_DFL); @@ -819,7 +819,7 @@ asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs) } } - ka = ¤t->sig->action[signr-1]; + ka = ¤t->sighand->action[signr-1]; if (ka->sa.sa_handler == SIG_IGN) { if (signr != SIGCHLD) continue; @@ -848,8 +848,7 @@ asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs) case SIGSTOP: current->state = TASK_STOPPED; current->exit_code = signr; - if (!(current->parent->sig->action[SIGCHLD-1] - .sa.sa_flags & SA_NOCLDSTOP)) + if (!(current->parent->sighand->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP)) notify_parent(current, SIGCHLD); schedule(); continue; -- 2.53.0