summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-06-29 20:41:52 +0000
committerjhb <jhb@FreeBSD.org>2010-06-29 20:41:52 +0000
commitdf7979cf7647002841f39b7e20cc8fbc4c413545 (patch)
tree4e3cc4d678f3bc1966b6606a03a75aeccdb05be4 /sys/kern/kern_exec.c
parentcd482a8dfcd52e6dc52e0661406343c6c841cbf3 (diff)
downloadFreeBSD-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_exec.c')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 149e6df..3a73f7d 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -755,13 +755,13 @@ interpret:
/*
* If tracing the process, trap to debugger so breakpoints
* can be set before the program executes.
- * Use tdsignal to deliver signal to current thread, use
+ * Use tdsignal to deliver signal to current thread, using
* psignal may cause the signal to be delivered to wrong thread
* because that thread will exit, remember we are going to enter
* single thread mode.
*/
if (p->p_flag & P_TRACED)
- tdsignal(p, td, SIGTRAP, NULL);
+ tdsignal(td, SIGTRAP);
/* clear "fork but no exec" flag, as we _are_ execing */
p->p_acflag &= ~AFORK;
OpenPOWER on IntegriCloud