aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/process/process_unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/process/process_unix.c b/src/lib/process/process_unix.c
index 57ca69a768..dd4ccbf603 100644
--- a/src/lib/process/process_unix.c
+++ b/src/lib/process/process_unix.c
@@ -183,8 +183,8 @@ process_unix_exec(process_t *process)
close(stdin_pipe[1]);
/** Cleanup standard out pipe. */
- close(stdin_pipe[0]);
- close(stdin_pipe[1]);
+ close(stdout_pipe[0]);
+ close(stdout_pipe[1]);
return PROCESS_STATUS_ERROR;
}
@@ -281,8 +281,8 @@ process_unix_exec(process_t *process)
close(stdin_pipe[1]);
/** Cleanup standard out pipe. */
- close(stdin_pipe[0]);
- close(stdin_pipe[1]);
+ close(stdout_pipe[0]);
+ close(stdout_pipe[1]);
/** Cleanup standard error pipe. */
close(stderr_pipe[0]);