Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbWHMTMf (ORCPT ); Sun, 13 Aug 2006 15:12:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751362AbWHMTMf (ORCPT ); Sun, 13 Aug 2006 15:12:35 -0400 Received: from omx1-ext.sgi.com ([192.48.179.11]:5606 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S1751359AbWHMTMe (ORCPT ); Sun, 13 Aug 2006 15:12:34 -0400 Date: Sun, 13 Aug 2006 12:12:22 -0700 From: Paul Jackson To: ebiederm@xmission.com (Eric W. Biederman) Cc: akpm@osdl.org, kamezawa.hiroyu@jp.fujitsu.com, linux-kernel@vger.kernel.org, acahalan@gmail.com Subject: Re: [RFC] ps command race fix Message-Id: <20060813121222.8210ccc2.pj@sgi.com> In-Reply-To: References: <20060714203939.ddbc4918.kamezawa.hiroyu@jp.fujitsu.com> <20060724182000.2ab0364a.akpm@osdl.org> <20060724184847.3ff6be7d.pj@sgi.com> <20060725110835.59c13576.kamezawa.hiroyu@jp.fujitsu.com> <20060724193318.d57983c1.akpm@osdl.org> <20060725115004.a6c668ca.kamezawa.hiroyu@jp.fujitsu.com> <20060725121640.246a3720.kamezawa.hiroyu@jp.fujitsu.com> <20060813103434.17804d52.akpm@osdl.org> Organization: SGI X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.3; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 18 Eric wrote: > Actually except when we can't find the process we were just at > the current code doesn't miss any newly added processes. Random thought -- could we have file descriptors open on /proc put some sort of 'hold' on whatever /proc entry they were just at, so it doesn't disappear out from under them, even if that process has otherwise fully exited? -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.925.600.0401 - 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/