Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 16 Sep 2002 07:38:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 16 Sep 2002 07:38:23 -0400 Received: from mx2.elte.hu ([157.181.151.9]:65417 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Mon, 16 Sep 2002 07:38:18 -0400 Date: Mon, 16 Sep 2002 13:50:12 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: OGAWA Hirofumi Cc: Linus Torvalds , , Daniel Jacobowitz Subject: Re: [PATCH] Fix for ptrace breakage In-Reply-To: <87bs6y6u25.fsf@devron.myhome.or.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 697 Lines: 22 On Mon, 16 Sep 2002, OGAWA Hirofumi wrote: > list_for_each(_p, &father->ptrace_children) { > p = list_entry(_p,struct task_struct,ptrace_list); > list_del_init(&p->ptrace_list); > reparent_thread(p, reaper, child_reaper); > if (p->parent != p->real_parent) > list_add(&p->ptrace_list, &p->real_parent->ptrace_children); > } > > current->ptrace_children should be empty after this reparent. oh, okay. It's also cleaner this way. Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/