diff options
author | Craig Small <csmall@users.sourceforge.net> | 2012-08-31 10:05:24 +1000 |
---|---|---|
committer | Craig Small <csmall@users.sourceforge.net> | 2012-08-31 10:05:24 +1000 |
commit | f118a020b35fe6ad3d844478363dcf3186556204 (patch) | |
tree | 08265019703f8c033abb00a0f1509629c55ea9ea /doc | |
parent | 1cd360d6b071d09207bc19c29f835cc1280e9861 (diff) |
pstree finds orphans
Commit 26f9b6c1553d021c0bf9dd85f0647dc6e210948d while fixing the missing
root pid problem introduced another problem where PIDs are out of order.
A process that has a lower PID than its PPID would appear twice with
the tree breaking in strange ways.
We now scan the entire process tree first then perform two checks
if PID==1 is missing add it
if a process has no parent, then make it a child of PID==1, either the
real one or the faked one made in step 1
As this is done after all procsses are found, we don't get the previous
breakage.
Ref: https://sourceforge.net/tracker/?func=detail&aid=3537508&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@users.sourceforge.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/pstree.1 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/pstree.1 b/doc/pstree.1 index ecd182d..fea80b6 100644 --- a/doc/pstree.1 +++ b/doc/pstree.1 @@ -74,6 +74,13 @@ then it will prompt the user at the end of the line to press return and will not return until that has happened. This is useful for when .B pstree is run in a xterminal. +.PP +Certain kernel or mount parameters, such as the hidepid option for procfs, +will hide information for some processes. In these situations +.B pstree +will attempt to build the tree without this information, showing process +names as question marks. + .SH OPTIONS .IP \fB\-a\fP Show command line arguments. If the command line of a process is |