summaryrefslogtreecommitdiffstats
path: root/lib/utils_cmd.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-09-20 08:16:11 +0200
committerGitHub <noreply@github.com>2023-09-20 08:16:11 +0200
commita5ba424f85153b1ddaaf5e5269c82f0f049828d0 (patch)
treeb9c158930159f2ab1ea2eb45e9e19ccdd0fbb76b /lib/utils_cmd.c
parenta99db0243baa5d208c5d500a9bde86b4619cec92 (diff)
parent220455a11e8f1dd3a86ac4725cf0c799c8e3b21b (diff)
downloadmonitoring-plugins-a5ba424.tar.gz
Merge branch 'master' into master
Diffstat (limited to 'lib/utils_cmd.c')
-rw-r--r--lib/utils_cmd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c
index 795840d3..34fb3909 100644
--- a/lib/utils_cmd.c
+++ b/lib/utils_cmd.c
@@ -118,10 +118,6 @@ _cmd_open (char *const *argv, int *pfd, int *pfderr)
118 118
119 int i = 0; 119 int i = 0;
120 120
121 /* if no command was passed, return with no error */
122 if (argv == NULL)
123 return -1;
124
125 if (!_cmd_pids) 121 if (!_cmd_pids)
126 CMD_INIT; 122 CMD_INIT;
127 123
@@ -161,7 +157,7 @@ _cmd_open (char *const *argv, int *pfd, int *pfderr)
161 } 157 }
162 158
163 /* parent picks up execution here */ 159 /* parent picks up execution here */
164 /* close childs descriptors in our address space */ 160 /* close children descriptors in our address space */
165 close (pfd[1]); 161 close (pfd[1]);
166 close (pfderr[1]); 162 close (pfderr[1]);
167 163