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/compat/linux | |
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/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 9cc05ed9..ca4bda1 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -501,7 +501,7 @@ linux_rt_sigtimedwait(struct thread *td, /* Repost if we got an error. */ if (error && info.ksi_signo) { PROC_LOCK(td->td_proc); - tdsignal(td->td_proc, td, info.ksi_signo, &info); + tdksignal(td, info.ksi_signo, &info); PROC_UNLOCK(td->td_proc); } else td->td_retval[0] = info.ksi_signo; @@ -587,7 +587,7 @@ linux_do_tkill(struct thread *td, l_int tgid, l_int pid, l_int signum) ksi.ksi_pid = proc->p_pid; ksi.ksi_uid = proc->p_ucred->cr_ruid; - error = tdsignal(p, NULL, ksi.ksi_signo, &ksi); + error = pksignal(p, ksi.ksi_signo, &ksi); out: PROC_UNLOCK(p); |