diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-11-01 11:05:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 11:05:50 +0100 |
commit | 6d08e1c8c96d0327a5b819dc1fbb0d5754f3e2e5 (patch) | |
tree | 575867b1d1eef4cd20215f22f9151ebb4a02c93d /plugins/runcmd.c | |
parent | 03bde80abbda6fba2225568c3285a2ff2b5445a8 (diff) | |
parent | 76d9f25cd0dbe99657baeb6fa139a1831558adae (diff) | |
download | monitoring-plugins-6d08e1c.tar.gz |
Merge branch 'master' into fix_check_mailq
Diffstat (limited to 'plugins/runcmd.c')
-rw-r--r-- | plugins/runcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/runcmd.c b/plugins/runcmd.c index 4f3e349b..32fd6b96 100644 --- a/plugins/runcmd.c +++ b/plugins/runcmd.c | |||
@@ -240,13 +240,12 @@ np_runcmd_close(int fd) | |||
240 | void | 240 | void |
241 | runcmd_timeout_alarm_handler (int signo) | 241 | runcmd_timeout_alarm_handler (int signo) |
242 | { | 242 | { |
243 | size_t i; | ||
244 | 243 | ||
245 | if (signo == SIGALRM) | 244 | if (signo == SIGALRM) |
246 | puts(_("CRITICAL - Plugin timed out while executing system call")); | 245 | puts(_("CRITICAL - Plugin timed out while executing system call")); |
247 | 246 | ||
248 | long maxfd = mp_open_max(); | 247 | long maxfd = mp_open_max(); |
249 | if(np_pids) for(i = 0; i < maxfd; i++) { | 248 | if(np_pids) for(long int i = 0; i < maxfd; i++) { |
250 | if(np_pids[i] != 0) kill(np_pids[i], SIGKILL); | 249 | if(np_pids[i] != 0) kill(np_pids[i], SIGKILL); |
251 | } | 250 | } |
252 | 251 | ||