summaryrefslogtreecommitdiffstats
path: root/lib/utils_cmd.c
diff options
context:
space:
mode:
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