From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: proced: ppid of process ID 0 can be 0 Date: Wed, 24 Dec 2008 13:55:51 -0500 Message-ID: References: <18765.19040.568030.246241@tfkp04.physik.uni-erlangen.de> <18765.29820.997276.703222@tfkp04.physik.uni-erlangen.de> <18765.51840.943986.608296@tfkp04.physik.uni-erlangen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230144973 9785 80.91.229.12 (24 Dec 2008 18:56:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2008 18:56:13 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org, Roland.Winkler@physik.uni-erlangen.de To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 24 19:57:17 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LFYux-0008FO-JK for ged-emacs-devel@m.gmane.org; Wed, 24 Dec 2008 19:57:15 +0100 Original-Received: from localhost ([127.0.0.1]:47980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFYtk-0002Nw-J5 for ged-emacs-devel@m.gmane.org; Wed, 24 Dec 2008 13:56:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LFYtg-0002Nr-Ai for emacs-devel@gnu.org; Wed, 24 Dec 2008 13:55:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LFYtd-0002NC-W3 for emacs-devel@gnu.org; Wed, 24 Dec 2008 13:55:55 -0500 Original-Received: from [199.232.76.173] (port=45876 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFYtd-0002N3-Qa for emacs-devel@gnu.org; Wed, 24 Dec 2008 13:55:53 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:50027) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LFYtc-00062k-KF; Wed, 24 Dec 2008 13:55:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUEAMwUUklFxKfZ/2dsb2JhbACBbL0+WJEAhkKBZw X-IronPort-AV: E=Sophos;i="4.36,279,1228107600"; d="scan'208";a="31456905" Original-Received: from 69-196-167-217.dsl.teksavvy.com (HELO pastel.home) ([69.196.167.217]) by ironport2-out.teksavvy.com with ESMTP; 24 Dec 2008 13:55:51 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 9D03F87A2; Wed, 24 Dec 2008 13:55:51 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Wed, 24 Dec 2008 20:29:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107276 Archived-At: >> > Processes that disappeared while Emacs was reading /proc, for example. >> Then don't return them at all > How? I don't know enough about Linux kernel internals to decide which > attribute's absence means that the process died while Emacs was > reading /proc. AFAIK we're talking about ppid, and this info is always present, so if it's absent, don't return the process. Stefan