diff options
author | jhb <jhb@FreeBSD.org> | 2010-06-29 20:41:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-06-29 20:41:52 +0000 |
commit | df7979cf7647002841f39b7e20cc8fbc4c413545 (patch) | |
tree | 4e3cc4d678f3bc1966b6606a03a75aeccdb05be4 /sys/kern/kern_exit.c | |
parent | cd482a8dfcd52e6dc52e0661406343c6c841cbf3 (diff) | |
download | FreeBSD-src-df7979cf7647002841f39b7e20cc8fbc4c413545.zip FreeBSD-src-df7979cf7647002841f39b7e20cc8fbc4c413545.tar.gz |
Tweak the in-kernel API for sending signals to threads:
- Rename tdsignal() to tdsendsignal() and make it private to kern_sig.c.
- Add tdsignal() and tdksignal() routines that mirror psignal() and
pksignal() except that they accept a thread as an argument instead of
a process. They send a signal to a specific thread rather than to an
individual process.
Reviewed by: kib
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index af00f42..a781f8b 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -732,7 +732,7 @@ proc_reap(struct thread *td, struct proc *p, int *status, int options, p->p_oppid = 0; proc_reparent(p, t); PROC_UNLOCK(p); - tdsignal(t, NULL, SIGCHLD, p->p_ksi); + pksignal(t, SIGCHLD, p->p_ksi); wakeup(t); cv_broadcast(&p->p_pwait); PROC_UNLOCK(t); |