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: Sat, 20 Dec 2008 14:10:30 -0500 Message-ID: References: <878wqbpiwi.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229800252 6483 80.91.229.12 (20 Dec 2008 19:10:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2008 19:10:52 +0000 (UTC) Cc: Juanma Barranquero , Emacs Devel To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 20 20:11:57 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 1LE7Ey-0001b4-4Z for ged-emacs-devel@m.gmane.org; Sat, 20 Dec 2008 20:11:56 +0100 Original-Received: from localhost ([127.0.0.1]:56434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LE7Dl-0007SV-A1 for ged-emacs-devel@m.gmane.org; Sat, 20 Dec 2008 14:10:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LE7Dg-0007SP-Hb for emacs-devel@gnu.org; Sat, 20 Dec 2008 14:10:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LE7Dc-0007RX-WE for emacs-devel@gnu.org; Sat, 20 Dec 2008 14:10:36 -0500 Original-Received: from [199.232.76.173] (port=39272 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LE7Dc-0007RR-Q2 for emacs-devel@gnu.org; Sat, 20 Dec 2008 14:10:32 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:37274 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LE7Dc-0006uK-Dz for emacs-devel@gnu.org; Sat, 20 Dec 2008 14:10:32 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsEAE7STElMCqBi/2dsb2JhbACBbLpwWJBjhkOBWg X-IronPort-AV: E=Sophos;i="4.36,255,1228107600"; d="scan'208";a="31314502" Original-Received: from 76-10-160-98.dsl.teksavvy.com (HELO ceviche.home) ([76.10.160.98]) by ironport2-out.teksavvy.com with ESMTP; 20 Dec 2008 14:10:30 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id AD7B2B4060; Sat, 20 Dec 2008 14:10:30 -0500 (EST) In-Reply-To: <878wqbpiwi.fsf@cyd.mit.edu> (Chong Yidong's message of "Fri, 19 Dec 2008 23:31:09 -0500") 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:107135 Archived-At: >>> + if (proc_id != 0) >> Better test "proc_id != proc_id", I think. > Wait, what? Damn, that thing was potent! Stef PS: the intention was to compare the pid and the ppid.