Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Original comment by g.rodola
on 27 Dec 2010 at 4:08
I personally think we should keep it, but document it since it provides a way
to get information for the "kernel" process even before init, and it fits
nicely with other platforms. As long as it's adequately documented I think we
should keep it in place.
Original comment by jlo...@gmail.com
on 27 Dec 2010 at 7:49
> it provides a way to get information for the "kernel" process even before init
What do you mean?
As of now we are "faking" all the return values with bogus data such as [], "",
or AccessDenied exception.
Original comment by g.rodola
on 2 Jul 2011 at 6:21
I'd like to move forward with this and figure out what to do.
My previous comment still stands: we're currently faking all the returned info
for no other reason than to comply with those platforms were pid 0 is an actual
process pid.
Also, pid 0 is not shown by cmdline tools such as ps, top and iotop, adding
unnecessary burden in case one wants to clone those tools (see issue 213 -
iotop clone).
Original comment by g.rodola
on 29 Sep 2011 at 11:26
That's fine, you can remove it if you want to. I think it makes sense since
there IS debatably a PID 0 / sched process on Linux, but it's not a critical
feature.
Original comment by jloden.n...@gmail.com
on 30 Sep 2011 at 12:10
I've been trying to search info about this and results aren't exhaustive.
AFAICT, ps cannot provide any info:
giampaolo@ubuntu:~$ ps -p 0
ERROR: Process ID out of range.
giampaolo@ubuntu:~$ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Sep29 ? 00:00:00 /sbin/init
root 2 0 0 Sep29 ? 00:00:00 [kthreadd]
...
Other than that, even is there is a pid 0, we are not returning any information
about it aside from an hard coded name ("sched"); this is my real point.
Original comment by g.rodola
on 30 Sep 2011 at 8:05
> Other than that, even is there is a pid 0, we are not returning any
information about it
> aside from an hard coded name ("sched"); this is my real point.
And the boot time of the system as the start time of the process, IIRC.
Again, it's not a critical feature, we can remove it if you want, I don't think
anyone will have a problem with it.
Original comment by jlo...@gmail.com
on 30 Sep 2011 at 12:24
Checked in as r1141.
Original comment by g.rodola
on 30 Sep 2011 at 2:55
Original comment by g.rodola
on 21 Oct 2011 at 11:44
Original comment by g.rodola
on 21 Oct 2011 at 11:45
[deleted comment]
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r1141 == revision 9abda73cc8d1
Original comment by g.rodola
on 2 Mar 2013 at 11:57
Original issue reported on code.google.com by
g.rodola
on 27 Dec 2010 at 4:08