diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_sig.c | 12 | ||||
-rw-r--r-- | sys/kern/subr_trap.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index ea2ab15..9bf4385 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1256,19 +1256,19 @@ pgsignal(pgrp, sig, checkctty) } /* - * Send a signal caused by a trap to the current process. + * Send a signal caused by a trap to the current thread. * If it will be caught immediately, deliver it with correct code. * Otherwise, post it normally. * * MPSAFE */ void -trapsignal(p, sig, code) - struct proc *p; - register int sig; - u_long code; +trapsignal(struct thread *td, int sig, u_long code) { - register struct sigacts *ps; + struct sigacts *ps; + struct proc *p; + + p = td->td_proc; PROC_LOCK(p); ps = p->p_sigacts; diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index fe5f1e4..7fe4883 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -209,7 +209,7 @@ ast(struct trapframe *framep) PCB_NPXTRAP); ucode = npxtrap(); if (ucode != -1) { - trapsignal(p, SIGFPE, ucode); + trapsignal(td, SIGFPE, ucode); } } #endif |