diff options
author | jhb <jhb@FreeBSD.org> | 2010-07-09 13:53:25 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-07-09 13:53:25 +0000 |
commit | 7e3b216a371bb20e3d74c7416e516cf018c9fb0c (patch) | |
tree | 258dd1b27e9cd1cb4cb978436835fd38ca1e1912 /sys | |
parent | f8bdee95a4a3bcd83f3840fa19fd237418963692 (diff) | |
download | FreeBSD-src-7e3b216a371bb20e3d74c7416e516cf018c9fb0c.zip FreeBSD-src-7e3b216a371bb20e3d74c7416e516cf018c9fb0c.tar.gz |
Refine a comment.
Reviewed by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_exec.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 3fd89fc..4f02df06 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -754,11 +754,10 @@ 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, 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. + * can be set before the program executes. We have to use + * tdsignal() to deliver the signal to the current thread + * since any other threads in this process will exit if + * execve() succeeds. */ if (p->p_flag & P_TRACED) tdsignal(td, SIGTRAP); |