summaryrefslogtreecommitdiffstats
path: root/lib/utils_cmd.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-16 15:26:00 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-16 15:26:00 +0100
commit5ced56b268ed9a8f06755c89615aac68618557ae (patch)
treebb10efc0774da234625ca27a6757ef3e4ec14e1a /lib/utils_cmd.c
parent463223790cb67421d420ba982c1f5ee6cc6f2b4a (diff)
downloadmonitoring-plugins-5ced56b268ed9a8f06755c89615aac68618557ae.tar.gz
fix include order error
Diffstat (limited to 'lib/utils_cmd.c')
-rw-r--r--lib/utils_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c
index a0213f6b..42c81793 100644
--- a/lib/utils_cmd.c
+++ b/lib/utils_cmd.c
@@ -36,7 +36,6 @@
36 * 36 *
37 *****************************************************************************/ 37 *****************************************************************************/
38 38
39#include <stddef.h>
40#define NAGIOSPLUG_API_C 1 39#define NAGIOSPLUG_API_C 1
41 40
42/** includes **/ 41/** includes **/
@@ -57,6 +56,7 @@ static pid_t *_cmd_pids = NULL;
57#include "./maxfd.h" 56#include "./maxfd.h"
58 57
59#include <fcntl.h> 58#include <fcntl.h>
59#include <stddef.h>
60 60
61#ifdef HAVE_SYS_WAIT_H 61#ifdef HAVE_SYS_WAIT_H
62# include <sys/wait.h> 62# include <sys/wait.h>
@@ -601,6 +601,7 @@ cmd_run_result cmd_run_array2(char *const *cmd, int flags) {
601 if (cmd_open_result.error_code != 0) { 601 if (cmd_open_result.error_code != 0) {
602 // result.error_code = -1; 602 // result.error_code = -1;
603 // return result; 603 // return result;
604 // TODO properly handle this without dying
604 die(STATE_UNKNOWN, _("Could not open pipe: %s\n"), cmd[0]); 605 die(STATE_UNKNOWN, _("Could not open pipe: %s\n"), cmd[0]);
605 } 606 }
606 607