Refine a comment.

Reviewed by:	bde
This commit is contained in:
John Baldwin 2010-07-09 13:53:25 +00:00
parent 281b584e8e
commit 07b183388a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209847

View File

@ -754,11 +754,10 @@ do_execve(td, args, mac_p)
/*
* 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);