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

This commit is contained in:
Mateusz Guzik 2014-07-14 22:40:46 +00:00
parent f07b643c5c
commit 965d08605f

View File

@ -655,7 +655,7 @@ do_execve(td, args, mac_p)
* 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);
}