Better UID detection: read it from stat(/proc/PID) instead of /proc/PID/status and...