summaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/os-posix.c b/os-posix.c
index 42c55bb..38e21cf 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -223,12 +223,9 @@ Process *process_run_ex(const char *command, const ProcessSettings *settings) {
close(stderr_pipe[1]);
close(stdin_pipe[0]);
// set pipes to non-blocking
- if (!settings->stdout_blocking)
- set_nonblocking(stdout_pipe[0]);
- if (stderr_pipe[0] && !settings->stderr_blocking)
+ set_nonblocking(stdout_pipe[0]);
+ if (stderr_pipe[0])
set_nonblocking(stderr_pipe[0]);
- if (!settings->stdin_blocking)
- set_nonblocking(stdin_pipe[1]);
proc->pid = pid;
proc->stdout_pipe = stdout_pipe[0];
if (stderr_pipe[0])