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: Sun, 21 Dec 2008 21:45:06 -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 1229913934 7530 80.91.229.12 (22 Dec 2008 02:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 02:45:34 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org, Roland Winkler To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 22 03:46:39 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 1LEaoY-0004TG-WD for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2008 03:46:39 +0100 Original-Received: from localhost ([127.0.0.1]:36163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEanM-0001Ai-En for ged-emacs-devel@m.gmane.org; Sun, 21 Dec 2008 21:45:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LEanI-0001A9-3K for emacs-devel@gnu.org; Sun, 21 Dec 2008 21:45:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LEanG-00019x-FR for emacs-devel@gnu.org; Sun, 21 Dec 2008 21:45:18 -0500 Original-Received: from [199.232.76.173] (port=42862 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEanG-00019u-9X for emacs-devel@gnu.org; Sun, 21 Dec 2008 21:45:18 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:64232) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LEanE-0003EJ-N4; Sun, 21 Dec 2008 21:45:16 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgkFAH+OTklMCqBi/2dsb2JhbACBa7pcWI8HhkOBWg X-IronPort-AV: E=Sophos;i="4.36,261,1228107600"; d="scan'208";a="31356949" Original-Received: from 76-10-160-98.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.98]) by ironport2-out.teksavvy.com with ESMTP; 21 Dec 2008 21:45:06 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E519B84A4; Sun, 21 Dec 2008 21:45:06 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Sun, 21 Dec 2008 21:17:26 +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:107165 Archived-At: > I have no doubt that on GNU/Linux, a ppid of zero is a sign of the > root of the process tree. But I wrote the 2 primitives that proced.el > uses in order to free proced.el of any such OS-dependent assumptions. > I have no problems with providing another one. The primitives should ensure that what they return forms a forest. I.e. under POSIX, they should treat a "ppid == 0" as meaning that there's no parent (i.e. the data returned to Elisp should never say "the parent is process 0" but should instead say "this process doesn't have a parent"). Stefan