diff options
author | Jan Wagner <waja@cyconet.org> | 2023-10-17 13:39:37 +0200 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2023-10-17 13:39:37 +0200 |
commit | 2a047014385022c8dc06dad4da0428db14898689 (patch) | |
tree | 00abea46325decf0c72870ee8f9ec1472e8e5344 /plugins/check_procs.c | |
parent | f39211c26408af582121f519d89c8abf70e6d437 (diff) | |
parent | e23a75d954311b3be429a9020e4d317b89615ee7 (diff) | |
download | monitoring-plugins-2a04701.tar.gz |
Merge branch 'master' of github.com:monitoring-plugins/monitoring-plugins
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r-- | plugins/check_procs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c index c17c6996..1637e3e3 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
@@ -241,8 +241,9 @@ main (int argc, char **argv) | |||
241 | 241 | ||
242 | /* Ignore self */ | 242 | /* Ignore self */ |
243 | if ((usepid && mypid == procpid) || | 243 | if ((usepid && mypid == procpid) || |
244 | (!usepid && ((ret = stat_exe(procpid, &statbuf) != -1) && statbuf.st_dev == mydev && statbuf.st_ino == myino) || | 244 | ( ((!usepid) && ((ret = stat_exe(procpid, &statbuf) != -1) && statbuf.st_dev == mydev && statbuf.st_ino == myino)) || |
245 | (ret == -1 && errno == ENOENT))) { | 245 | (ret == -1 && errno == ENOENT)) |
246 | ) { | ||
246 | if (verbose >= 3) | 247 | if (verbose >= 3) |
247 | printf("not considering - is myself or gone\n"); | 248 | printf("not considering - is myself or gone\n"); |
248 | continue; | 249 | continue; |