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: Mon, 22 Dec 2008 17:24:24 -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 1229984688 13970 80.91.229.12 (22 Dec 2008 22:24:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 22:24:48 +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 Mon Dec 22 23:25:53 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 1LEtDj-0000pw-CA for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2008 23:25:51 +0100 Original-Received: from localhost ([127.0.0.1]:35351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEtCW-0006jC-LG for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2008 17:24:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LEtCR-0006iN-V2 for emacs-devel@gnu.org; Mon, 22 Dec 2008 17:24:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LEtCQ-0006hq-BQ for emacs-devel@gnu.org; Mon, 22 Dec 2008 17:24:31 -0500 Original-Received: from [199.232.76.173] (port=49185 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEtCQ-0006hn-5T for emacs-devel@gnu.org; Mon, 22 Dec 2008 17:24:30 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:33030) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LEtCO-0007eE-AQ; Mon, 22 Dec 2008 17:24:28 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArcEAOahT0lMCqh5/2dsb2JhbACBbL0DWJAthkOBWg X-IronPort-AV: E=Sophos;i="4.36,265,1228107600"; d="scan'208";a="31394442" Original-Received: from 76-10-168-121.dsl.teksavvy.com (HELO pastel.home) ([76.10.168.121]) by ironport2-out.teksavvy.com with ESMTP; 22 Dec 2008 17:24:26 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id B0C9184C5; Mon, 22 Dec 2008 17:24:24 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Mon, 22 Dec 2008 21:57:30 +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:107203 Archived-At: >> To me the definition of "root" is "has no parent", so the two are >> equivalent. > Same here. But "having no parent" and "found zero in /proc/NNN/stat" > is not necessarily the same. >> I could live with a predicate process-tree-root-p, but I'd expect it >> to just check for the absence of a parent. > Me too. However, that check is OS-dependent, so I don't think it > should be in Lisp. Indeed, it should be in system-process-attributes which is already OS-dependent. Stefan