diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-20 08:16:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 08:16:11 +0200 |
commit | a5ba424f85153b1ddaaf5e5269c82f0f049828d0 (patch) | |
tree | b9c158930159f2ab1ea2eb45e9e19ccdd0fbb76b /lib/utils_cmd.c | |
parent | a99db0243baa5d208c5d500a9bde86b4619cec92 (diff) | |
parent | 220455a11e8f1dd3a86ac4725cf0c799c8e3b21b (diff) | |
download | monitoring-plugins-a5ba424.tar.gz |
Merge branch 'master' into master
Diffstat (limited to 'lib/utils_cmd.c')
-rw-r--r-- | lib/utils_cmd.c | 6 |
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 | ||