From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: proced: ppid of process ID 0 can be 0 Date: Tue, 23 Dec 2008 21:12:52 +0200 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1230059591 11060 80.91.229.12 (23 Dec 2008 19:13:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Dec 2008 19:13:11 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org, Roland.Winkler@physik.uni-erlangen.de To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 23 20:14: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 1LFChj-0002GL-BS for ged-emacs-devel@m.gmane.org; Tue, 23 Dec 2008 20:14:07 +0100 Original-Received: from localhost ([127.0.0.1]:60627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFCgW-0007Eb-Io for ged-emacs-devel@m.gmane.org; Tue, 23 Dec 2008 14:12:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LFCgS-0007EU-KH for emacs-devel@gnu.org; Tue, 23 Dec 2008 14:12:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LFCgR-0007EF-T5 for emacs-devel@gnu.org; Tue, 23 Dec 2008 14:12:48 -0500 Original-Received: from [199.232.76.173] (port=38366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFCgR-0007E8-Ov for emacs-devel@gnu.org; Tue, 23 Dec 2008 14:12:47 -0500 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:14028) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LFCgR-0001Nr-BK for emacs-devel@gnu.org; Tue, 23 Dec 2008 14:12:47 -0500 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KCC00J00G2B1900@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Tue, 23 Dec 2008 21:15:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.252.83]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KCC004QSG5F9PB0@i-mtaout1.012.net.il>; Tue, 23 Dec 2008 21:15:17 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:107248 Archived-At: > From: Stefan Monnier > Cc: Roland.Winkler@physik.uni-erlangen.de, lekktu@gmail.com, emacs-devel@gnu.org > Date: Tue, 23 Dec 2008 09:44:29 -0500 > > >> Indeed, it should be in system-process-attributes which is already > >> OS-dependent. > > If you mean by having no ppid attribute, then that's ambiguous, since > > an attribute can be missing because it is inaccessible for some > > reason, like some kind of failure unrelated to the fact that the > > process is really a root of a tree. > > Seems very hypothetical. It's not hypothetical, I've seen such cases and reported them to Roland. > More to the point: even if we could distinguish the "no ppid" from > "unkown ppid", it's unclear how Elisp code could make use of it. Lisp code cannot, but a primitive written in C can. But we are repeating ourselves.