svn commit: r268636 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Mon Jul 14 22:40:46 UTC 2014


Author: mjg
Date: Mon Jul 14 22:40:46 2014
New Revision: 268636
URL: http://svnweb.freebsd.org/changeset/base/268636

Log:
  Plug p_pptr null test in do_execve. It is always true.

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c	Mon Jul 14 21:32:40 2014	(r268635)
+++ head/sys/kern/kern_exec.c	Mon Jul 14 22:40:46 2014	(r268636)
@@ -655,7 +655,7 @@ interpret:
 	 * it that it now has its own resources back
 	 */
 	p->p_flag |= P_EXEC;
-	if (p->p_pptr && (p->p_flag & P_PPWAIT)) {
+	if (p->p_flag & P_PPWAIT) {
 		p->p_flag &= ~(P_PPWAIT | P_PPTRACE);
 		cv_broadcast(&p->p_pwait);
 	}


More information about the svn-src-head mailing list