svn commit: r270093 - stable/10/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sun Aug 17 07:22:41 UTC 2014


Author: mjg
Date: Sun Aug 17 07:22:40 2014
New Revision: 270093
URL: http://svnweb.freebsd.org/changeset/base/270093

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

Modified:
  stable/10/sys/kern/kern_exec.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_exec.c
==============================================================================
--- stable/10/sys/kern/kern_exec.c	Sun Aug 17 07:20:37 2014	(r270092)
+++ stable/10/sys/kern/kern_exec.c	Sun Aug 17 07:22:40 2014	(r270093)
@@ -658,7 +658,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-all mailing list