check_procs: Ignore ENOENT when checking for myself
commitd5677d9b42562b429218dd9436efd5f0e79d7929
authorSebastian Schmidt <sschmidt@interhyp.de>
Sun, 9 Dec 2012 13:31:23 +0000 (9 14:31 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 18 Aug 2013 10:59:57 +0000 (18 12:59 +0200)
tree5fe2fd38bcba6ca177452e046d1cf6085a274453
parent274f3ddee2431e27c5c48fcaf1aaf2ef3e40b266
check_procs: Ignore ENOENT when checking for myself

Previously, when a process exited between the call to /bin/ps and
stat("/proc/his/exe") was exiting it was not considered as possible
instance of check_procs. This commit makes check_procs ignore all
processes where /proc/pid/exe does not exist.
plugins/check_procs.c