Earlier quoted context omitted.
/proc is cute for manual tasks but utterly broke as an API due to inherent races and issues passing context around.
So utterly broke that the poor "htop" program cannot work at all... oh wait $ strace htop 2>/tmp/e # wait for htop to load and then press 'q' $ cat /tmp/e | grep ^open | grep /proc | wc -l 49817 htop is essentially "find /proc" with a pretty output. Is htop broken for you?
Re: Security in Plan 9 (2002)
#71There’s no need to be snarky, especially when you’re missing the point. htop missing a race on a PID is no big deal. GDB doing so is a critical issue. /proc is nice to have for diagnostics but once again it makes for terrible API.