Better UID detection: read it from stat(/proc/PID) instead of /proc/PID/status and...
commit60b57d43037261874313f8e5a42b6f8148d1b88c
authorGuillaume Chazarain <guichaz@gmail.com>
Sun, 29 Mar 2009 14:45:38 +0000 (29 16:45 +0200)
committerGuillaume Chazarain <guichaz@gmail.com>
Sun, 29 Mar 2009 14:45:38 +0000 (29 16:45 +0200)
treeec0e39e39e200267970ca57c1cfa91f1b9ecd659
parent5be2a70fcffefacf1a5695bd0d2d2edc51ffa2f1
Better UID detection: read it from stat(/proc/PID) instead of /proc/PID/status and cache it only
if not running as root as the process may setuid().
Rewrite check_if_valid() to is_monitored().
Also re-read /proc/PID/status if needed when re-reading /proc/PID/cmdline.
iotop/data.py
iotop/ui.py