Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 19 Aug 2002 18:31:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 19 Aug 2002 18:31:20 -0400 Received: from mx2.elte.hu ([157.181.151.9]:27079 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Mon, 19 Aug 2002 18:31:19 -0400 Date: Tue, 20 Aug 2002 00:36:36 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Dave McCracken Cc: Linus Torvalds , Subject: Re: [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6 In-Reply-To: <100750000.1029793342@baldur.austin.ibm.com> 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: 826 Lines: 24 On Mon, 19 Aug 2002, Dave McCracken wrote: > > No, you only need to make debugged children slightly pecial in wait4(), in > > that the parent must never see their state, only the fact that they are > > there (as if they were still running, in short, regardless of their _real_ > > state) > > So does that mean we need something like a 'count of children stolen by > debuggers' in the task struct that wait4() can check? in fact we have this already, almost: if (!list_empty(¤t->ptrace_children)) then block (or return -EAGAIN). Instead of the current -ENOCHLD. 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/