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: Sat, 20 Dec 2008 13:34:10 +0200

> Date: Sat, 20 Dec 2008 03:52:40 +0100
> From: "Juanma Barranquero" <address@hidden>
> 
> proced.el assumes at several places (for example, at
> `proced-filter-parents') that you can loop over the ppid, because
> you'll eventually find a process with no parent.
> 
> That's not true with on Windows, where ppid (0) == 0. That causes a
> stack failure, for example, if you hit RET (`proced-refine') over the
> PPID of process 0.
> 
> I see two ways of fixing this: either removing the assumption from
> proced.el, or forcing the Windows implementation of
> system_process_attributes to adapt. First is more correct, second is
> much easier (see tiny patch below).

I'd prefer that proced.el doesn't make such an unportable assumption.
Roland?




reply via email to

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