From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: proced: ppid of process ID 0 can be 0 Date: Mon, 22 Dec 2008 20:03:04 +0200 Message-ID: <87myeorstj.fsf@kobe.laptop> References: <20081222.095427.259439175.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229969116 27111 80.91.229.12 (22 Dec 2008 18:05:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 18:05:16 +0000 (UTC) Cc: Harald Hanche-Olsen , emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 22 19:06:22 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 1LEp9P-0000uq-HA for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2008 19:05:24 +0100 Original-Received: from localhost ([127.0.0.1]:52227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEp8C-00086q-Is for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2008 13:03:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LEp87-000862-Ek for emacs-devel@gnu.org; Mon, 22 Dec 2008 13:03:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LEp83-00085F-Sx for emacs-devel@gnu.org; Mon, 22 Dec 2008 13:03:47 -0500 Original-Received: from [199.232.76.173] (port=57130 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEp83-00085C-Md for emacs-devel@gnu.org; Mon, 22 Dec 2008 13:03:43 -0500 Original-Received: from igloo.linux.gr ([62.1.205.36]:35089) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LEp7u-0004Rd-P8 for emacs-devel@gnu.org; Mon, 22 Dec 2008 13:03:43 -0500 Original-Received: from kobe.laptop (adsl28-172.kln.forthnet.gr [77.49.155.172]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBMI37BI007340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 22 Dec 2008 20:03:12 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBMI3722048839; Mon, 22 Dec 2008 20:03:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBMI34mi048838; Mon, 22 Dec 2008 20:03:04 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) In-Reply-To: (Juanma Barranquero's message of "Mon, 22 Dec 2008 11:43:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) X-MailScanner-ID: mBMI37BI007340 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.866, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:107185 Archived-At: On Mon, 22 Dec 2008 11:43:15 +0100, "Juanma Barranquero" wrote: > On Mon, Dec 22, 2008 at 09:54, Harald Hanche-Olsen wrote: > >> FWIW, on FreeBSD there is process 0 (the swapper), and various kernel >> processes have process 0 as their parent. > > There's no problem with a process having ppid = 0. But there's a > problem with processes having ppid = pid. Is that the case in FreeBSD? Yes this is the case: $ ps -xao pid,ppid,args | sed -n -e 1p -e /sed/d -e /kernel/p PID PPID COMMAND 0 0 [kernel] $ There are several processes with ppid == 0, and process 0 has pid == ppid: PID PPID COMMAND 0 0 [kernel] 1 0 /sbin/init -- 2 0 [g_event] 3 0 [g_up] 4 0 [g_down] 5 0 [xpt_thrd] 6 0 [sctp_iterator] 7 0 [pfpurge] 8 0 [pagedaemon] 9 0 [vmdaemon] 10 0 [audit] 11 0 [idle] 12 0 [intr] 13 0 [yarrow] 14 0 [usb0] 15 0 [usbtask-hc] 16 0 [usbtask-dr] 17 0 [usb1] 18 0 [usb2] 19 0 [usb3] 20 0 [usb4] 21 0 [usb5] 22 0 [usb6] 23 0 [acpi_thermal] 24 0 [acpi_cooling0] 25 0 [pagezero] 26 0 [bufdaemon] 27 0 [vnlru] 28 0 [syncer] 29 0 [softdepflush] 1019 0 [md0]