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: Eli Zaretskii
Subject: Re: proced: ppid of process ID 0 can be 0
Date: Wed, 24 Dec 2008 23:12:56 +0200

> From: Stefan Monnier <address@hidden>
> Cc: address@hidden,  address@hidden,  address@hidden
> Date: Wed, 24 Dec 2008 13:55:51 -0500
> 
> >> > Processes that disappeared while Emacs was reading /proc, for example.
> >> Then don't return them at all
> > How?  I don't know enough about Linux kernel internals to decide which
> > attribute's absence means that the process died while Emacs was
> > reading /proc.
> 
> AFAIK we're talking about ppid, and this info is always present, so if
> it's absent, don't return the process.

Can you find any authoritative reference that says we can rely on
this?  I couldn't even find a decent documentation of /proc when I was
working on these primitives, let alone some information about what
attributes are always present or how that changes with the kernel
version.




reply via email to

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