Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 20 Aug 2002 10:31:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 20 Aug 2002 10:31:40 -0400 Received: from mx1.elte.hu ([157.181.1.137]:57016 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Tue, 20 Aug 2002 10:31:40 -0400 Date: Tue, 20 Aug 2002 16:36:19 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Linus Torvalds Cc: Dave McCracken , Subject: Re: [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6 In-Reply-To: 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: 864 Lines: 25 the attached patch ontop of BK-curr fixes the ptrace wait4() anomaly that can be observed in any previous Linux kernel i could get my hands at. So in fact ->ptrace_children, besides being a speedup, also fixed a bug that couldnt be fixed in any satisfactory way before. Ingo --- linux/kernel/exit.c.orig Tue Aug 20 16:28:57 2002 +++ linux/kernel/exit.c Tue Aug 20 16:30:13 2002 @@ -731,7 +731,7 @@ tsk = next_thread(tsk); } while (tsk != current); read_unlock(&tasklist_lock); - if (flag) { + if (flag || !list_empty(¤t->ptrace_children)) { retval = 0; if (options & WNOHANG) goto end_wait4; - 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/