[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 21:57:30 +0200 |
> From: Stefan Monnier <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> Date: Mon, 22 Dec 2008 07:23:05 -0500
>
> To me the definition of "root" is "has no parent", so the two are
> equivalent.
Same here. But "having no parent" and "found zero in /proc/NNN/stat"
is not necessarily the same.
> I could live with a predicate process-tree-root-p, but I'd expect it
> to just check for the absence of a parent.
Me too. However, that check is OS-dependent, so I don't think it
should be in Lisp.
> > It is also more reliable, since ppid attribute could be missing for
> > some other reason, like failure to access the attribute.
>
> And what would your process-tree-root-p say in that case?
It depends on the OS.
> On my GNU/Linux system, 0 is not a process, so a ppid of 0 is not
> a parent but rather the mark of the absence of a parent.
Sounds like this isn't true on FreeBSD as well, not only on
MS-Windows.
- Re: proced: ppid of process ID 0 can be 0, (continued)
- 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
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0,
Eli Zaretskii <=
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 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, Roland Winkler, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Giorgos Keramidas, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/24