From 4a3718fb251369224e283ab56a6a157fc2cc75ed Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 31 Mar 2003 22:02:38 +0000 Subject: - Change trapsignal() to accept a thread and not a proc. - Change all consumers to pass in a thread. Right now this does not cause any functional changes but it will be important later when signals can be delivered to specific threads. --- sys/kern/kern_sig.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/kern/kern_sig.c') 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; -- cgit v1.1