summaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-08 13:45:57 -0500
committerpommicket <pommicket@gmail.com>2023-01-09 13:23:50 -0500
commitea70e513d8a927680f2795d4bad9aba788f32d77 (patch)
tree882054649e65718a3eea60cd84788e527e37225d /os-posix.c
parentff6abceefdcf3bd1521d88173323c93abf71eb6b (diff)
building on windows
still needs lots more testing
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])