diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 07bc503ac..b441988aa 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -601,9 +601,8 @@ static inline void copy_flags(unsigned long clone_flags, struct task_struct *p) new_flags &= ~(PF_SUPERPRIV | PF_USEDFPU | PF_VFORK); new_flags |= PF_FORKNOEXEC; - if (!(clone_flags & CLONE_PTRACE)) { + if (!(clone_flags & CLONE_PTRACE)) p->ptrace = 0; - } if (clone_flags & CLONE_VFORK) new_flags |= PF_VFORK; p->flags = new_flags; @@ -675,7 +674,7 @@ int do_fork(unsigned long clone_flags, unsigned long usp, struct pt_regs *regs) if ((clone_flags & CLONE_VFORK) || !(clone_flags & CLONE_PARENT)) { p->p_opptr = current; - if (!(p->ptrace&PT_PTRACED)) + if (!(p->ptrace & PT_PTRACED)) p->p_pptr = current; } p->p_cptr = NULL; |