• jim warner's avatar
    top: harden management of 'Hide_pid' array allocations · dbe12b54
    jim warner authored
    While setting the size of that Hide_pid array to equal
    total pids high water mark was probably safe, in truth
    there is no real relationship. At some point one could
    exceed that HWM if the 'v' toggle was used extensively
    and at least 1 of those entries remained non-negative.
    This commit simply divorces Hide_tot from the pids HWM
    and bases Hide_pid array size on actual run-time need.
    Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
top.c 227 KB