diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-11-03 04:49:16 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-11-03 04:49:16 +0000 |
commit | 301b115d609d2595189bf67894c5e3db2fd34cb0 (patch) | |
tree | b8ef20963382d8a5edc4b03cfb0512134beca910 /sys/kern/kern_exec.c | |
parent | c4f51b40511670f148550caa0d16bba6bd30f3fa (diff) | |
download | FreeBSD-src-301b115d609d2595189bf67894c5e3db2fd34cb0.zip FreeBSD-src-301b115d609d2595189bf67894c5e3db2fd34cb0.tar.gz |
Cleanup some signal interfaces. Now the tdsignal function accepts
both proc pointer and thread pointer, if thread pointer is NULL,
tdsignal automatically finds a thread, otherwise it sends signal
to given thread.
Add utility function psignal_event to send a realtime sigevent
to a process according to the delivery requirement specified in
struct sigevent.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 811bd9f..51f012f 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -670,7 +670,7 @@ interpret: * single thread mode. */ if (p->p_flag & P_TRACED) - tdsignal(td, SIGTRAP, NULL, SIGTARGET_TD); + tdsignal(p, td, SIGTRAP, NULL); /* clear "fork but no exec" flag, as we _are_ execing */ p->p_acflag &= ~AFORK; |