emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proced: ppid of process ID 0 can be 0


From: Stefan Monnier
Subject: Re: proced: ppid of process ID 0 can be 0
Date: Sun, 21 Dec 2008 21:45:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]