summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_procs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 6e3feae..3c98866 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -255,6 +255,13 @@ main (int argc, char **argv)
255 continue; 255 continue;
256 } 256 }
257 257
258 /* Ignore our own children */
259 if (procppid == mypid) {
260 if (verbose >= 3)
261 printf("not considering - is our child\n");
262 continue;
263 }
264
258 /* Ignore excluded processes by name */ 265 /* Ignore excluded processes by name */
259 if(options & EXCLUDE_PROGS) { 266 if(options & EXCLUDE_PROGS) {
260 int found = 0; 267 int found = 0;