patch-2.3.99-pre9 linux/kernel/fork.c

Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/exec_domain.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/kernel/fork.c linux/kernel/fork.c
@@ -674,7 +674,7 @@
 
 	if ((clone_flags & CLONE_VFORK) || !(clone_flags & CLONE_PARENT)) {
 		p->p_opptr = current;
-		if (!(current->flags & PF_PTRACED))
+		if (!(p->flags & PF_PTRACED))
 			p->p_pptr = current;
 	}
 	p->p_cptr = NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)