svn commit: r209847 - head/sys/kern

John Baldwin jhb at FreeBSD.org
Fri Jul 9 13:53:26 UTC 2010


Author: jhb
Date: Fri Jul  9 13:53:25 2010
New Revision: 209847
URL: http://svn.freebsd.org/changeset/base/209847

Log:
  Refine a comment.
  
  Reviewed by:	bde

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c	Fri Jul  9 13:49:20 2010	(r209846)
+++ head/sys/kern/kern_exec.c	Fri Jul  9 13:53:25 2010	(r209847)
@@ -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);


More information about the svn-src-all mailing list