From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: proced: ppid of process ID 0 can be 0 Date: Wed, 24 Dec 2008 08:42:01 +0100 Message-ID: <1230104521.22857.22.camel@plastic> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230108164 19918 80.91.229.12 (24 Dec 2008 08:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2008 08:42:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 24 09:43:52 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 1LFPLL-00027a-4e for ged-emacs-devel@m.gmane.org; Wed, 24 Dec 2008 09:43:51 +0100 Original-Received: from localhost ([127.0.0.1]:47060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFPK8-0001Zq-89 for ged-emacs-devel@m.gmane.org; Wed, 24 Dec 2008 03:42:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LFPK5-0001ZZ-1C for emacs-devel@gnu.org; Wed, 24 Dec 2008 03:42:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LFPK0-0001ZM-Gh for emacs-devel@gnu.org; Wed, 24 Dec 2008 03:42:32 -0500 Original-Received: from [199.232.76.173] (port=38970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFPK0-0001ZJ-DY for emacs-devel@gnu.org; Wed, 24 Dec 2008 03:42:28 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:57109) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LFPJz-0005TQ-PY for emacs-devel@gnu.org; Wed, 24 Dec 2008 03:42:28 -0500 Original-Received: (qmail invoked by alias); 24 Dec 2008 07:42:25 -0000 Original-Received: from p57A0AEDB.dip0.t-ipconnect.de (EHLO [192.168.1.2]) [87.160.174.219] by mail.gmx.net (mp069) with SMTP; 24 Dec 2008 08:42:25 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX18TTclY9FUTXSytSWM2qTU93T3ObdIzvU833QoONQ 6cH/teaC4X3AW0 In-Reply-To: jwvwsdqz4hw.fsf-monnier+emacs@gnu.org X-Mailer: Evolution 2.24.2 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.74 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:107267 Archived-At: > That's not what I'm asking. I'm asking: what can C code (or > Elisp code or that matter) do when the ppid is somehow not > found (i.e. there's no ppid available, but the process might > have a parent). Well, for example: (when (although (maybe-not (process-tree-root-p pid)) (somehow-not-found-p (process-parent pid)) ) (with the-thing (begin-to-believe (if (y-or-n-p "Continue? ") 'funny 'strange) )))