[Top][All Lists]
[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: |
Mon, 22 Dec 2008 06:08:06 +0200 |
> From: Stefan Monnier <address@hidden>
> Cc: Roland Winkler <address@hidden>, address@hidden, address@hidden
> Date: Sun, 21 Dec 2008 21:45:06 -0500
>
> The primitives should ensure that what they return forms a forest.
You mean a tree.
> 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").
For me, code that calls process-tree-root-p (say) is much more
self-explanatory than a test for a missing parent pid attribute. It
is also more reliable, since ppid attribute could be missing for some
other reason, like failure to access the attribute.
So I don't understand why you insist on the above, please feel free to
explain what advantages do you see there.
Btw, is the above really mandated by Posix? Any references to that?
- Re: proced: ppid of process ID 0 can be 0, (continued)
- Re: proced: ppid of process ID 0 can be 0, Roland Winkler, 2008/12/20
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/20
- Re: proced: ppid of process ID 0 can be 0, Roland Winkler, 2008/12/20
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Juanma Barranquero, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Juanma Barranquero, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Juanma Barranquero, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0,
Eli Zaretskii <=
- Re: proced: ppid of process ID 0 can be 0, Miles Bader, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Harald Hanche-Olsen, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Juanma Barranquero, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Harald Hanche-Olsen, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Giorgos Keramidas, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Andreas Schwab, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, David De La Harpe Golden, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Andreas Schwab, 2008/12/22