]> granicus.if.org Git - psmisc/commit
Fake pstree root with kernels with hidepid
authorArkadiusz Miskiewicz <arekm@users.sourceforge.net>
Sat, 19 May 2012 08:39:02 +0000 (18:39 +1000)
committerCraig Small <csmall@users.sourceforge.net>
Sat, 19 May 2012 08:39:02 +0000 (18:39 +1000)
commit26f9b6c1553d021c0bf9dd85f0647dc6e210948d
treea92c267385cc8f98c24fa5e76da6468dbf590bd7
parentaa3f82fc06c5bf5326ce4c03cbea4d1fe8aa6388
Fake pstree root with kernels with hidepid

Kernels that hide pids hide pid=1 which pstree needs to show any
output.  If pstree detects this it now makes a "fake" root.

Bug-Sourceforge: https://sourceforge.net/tracker/?func=detail&aid=3509672&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@enc.com.au>
ChangeLog
src/pstree.c