summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-08-17 07:22:40 +0000
committermjg <mjg@FreeBSD.org>2014-08-17 07:22:40 +0000
commitfd678d23e5057af1b9ebf94bcd31fb03323560fd (patch)
tree767c7a5136a3984a97a6b0f6c314a4fa9e64f41d /sys/kern
parent46f8d5c454d6442279238a41dcb20c620f0e8b95 (diff)
downloadFreeBSD-src-fd678d23e5057af1b9ebf94bcd31fb03323560fd.zip
FreeBSD-src-fd678d23e5057af1b9ebf94bcd31fb03323560fd.tar.gz
MFC r268636:
Plug p_pptr null test in do_execve. It is always true.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 1c67059..a07b64c 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -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);
}
OpenPOWER on IntegriCloud