]> granicus.if.org Git - procps-ng/commit
top: revise default for forest view child scans
authorJim Warner <james.warner@comcast.net>
Wed, 4 Jul 2012 09:04:04 +0000 (04:04 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 29 Aug 2012 07:30:26 +0000 (17:30 +1000)
commita2086dfdf698f93de431349cf9a990fc5b95a768
tree543dcea52dd003b1771a04631c92ea97d9ef361f
parent06e92e93b86fa5f667c70c4b22e7d364d7a6b84d
top: revise default for forest view child scans

In an effort to avoid dangling children when in forest
view mode, top defaulted to a complete rescan of every
proc_t for each child encountered.

That expense was never really cost justified and now
with the 3.3 kernel 'hidepid' provisions it no longer
can offer such protection.

With this commit, the TREE_ONEPASS define is changed
to TREE_RESCANS so as to reverse the default scan
behavior.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h