View | Details | Raw Unified | Return to bug 208188
Collapse All | Expand All

(-)b/kern/kern_exit.c (-2 / +2 lines)
Lines 863-870 proc_reap(struct thread *td, struct proc *p, int *status, int options) Link Here
863
	 * If we got the child via a ptrace 'attach', we need to give it back
863
	 * If we got the child via a ptrace 'attach', we need to give it back
864
	 * to the old parent.
864
	 * to the old parent.
865
	 */
865
	 */
866
	if (p->p_oppid != 0) {
866
	t = proc_realparent(p);
867
		t = proc_realparent(p);
867
	if (p->p_oppid != 0 && t != q) {
868
		PROC_LOCK(t);
868
		PROC_LOCK(t);
869
		PROC_LOCK(p);
869
		PROC_LOCK(p);
870
		CTR2(KTR_PTRACE,
870
		CTR2(KTR_PTRACE,

Return to bug 208188