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 11:47:20 -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> <87wsdqjzar.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230137290 24142 80.91.229.12 (24 Dec 2008 16:48:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2008 16:48:10 +0000 (UTC) Cc: keramida@ceid.upatras.gr, lekktu@gmail.com, Roland.Winkler@physik.uni-erlangen.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 24 17:49:16 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 1LFWv5-0000aR-Oe for ged-emacs-devel@m.gmane.org; Wed, 24 Dec 2008 17:49:16 +0100 Original-Received: from localhost ([127.0.0.1]:58051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFWts-0002JD-Tt for ged-emacs-devel@m.gmane.org; Wed, 24 Dec 2008 11:48:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LFWtI-00021n-Kg for emacs-devel@gnu.org; Wed, 24 Dec 2008 11:47:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LFWtH-00021M-Uc for emacs-devel@gnu.org; Wed, 24 Dec 2008 11:47:24 -0500 Original-Received: from [199.232.76.173] (port=46429 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFWtH-00021G-SD for emacs-devel@gnu.org; Wed, 24 Dec 2008 11:47:23 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:61425) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LFWtF-0000JC-Dg; Wed, 24 Dec 2008 11:47:21 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAFP2UUlFxKfZ/2dsb2JhbACBbL1OWJEIhkKBZw X-IronPort-AV: E=Sophos;i="4.36,279,1228107600"; d="scan'208";a="31452680" 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 11:47:20 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8B79B8780; Wed, 24 Dec 2008 11:47:20 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Wed, 24 Dec 2008 06:14:55 +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:107269 Archived-At: > The process-tree-root-p primitive does not need to employ the same > logic (nor even the same syscalls, actually) that > system-process-attributes does. The latter simply omits from the > alist it returns any attribute that it could not fetch for some > reason, any reason. The former could do something else. What > exactly, I will figure out when I write it. So you're saying that by working hard you can maybe in some corner case give a more precise answer for the boolean `process-tree-root-p' while the parent process is not returned by `system-process-attributes'. I can't think of any situation where process-tree-root-p would be useful and where the ppids wouldn't be needed. I also still have no idea how/when system-process-attributes could fail to return ppids. It still sounds terribly far fetched. Stefan