diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-31 22:02:38 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-31 22:02:38 +0000 |
commit | 4a3718fb251369224e283ab56a6a157fc2cc75ed (patch) | |
tree | 9692813d1ffe9f9b0937d412c615f0a0ddfd7eb8 /sys/kern/kern_sig.c | |
parent | 848087b9b0b45a29daa2a3f8acf9cb8d797e8b51 (diff) | |
download | FreeBSD-src-4a3718fb251369224e283ab56a6a157fc2cc75ed.zip FreeBSD-src-4a3718fb251369224e283ab56a6a157fc2cc75ed.tar.gz |
- 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.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 12 |
1 files changed, 6 insertions, 6 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; |