mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 00:32:05 -04:00
Merge pull request #1968 from shartge/improve-check_procs
check_procs: ignore our own children
This commit is contained in:
commit
c43d2e9959
1 changed files with 7 additions and 0 deletions
|
|
@ -255,6 +255,13 @@ main (int argc, char **argv)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Ignore our own children */
|
||||
if (procppid == mypid) {
|
||||
if (verbose >= 3)
|
||||
printf("not considering - is our child\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Ignore excluded processes by name */
|
||||
if(options & EXCLUDE_PROGS) {
|
||||
int found = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue