diff options
author | pommicket <pommicket@gmail.com> | 2023-01-08 13:45:57 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-09 13:23:50 -0500 |
commit | ea70e513d8a927680f2795d4bad9aba788f32d77 (patch) | |
tree | 882054649e65718a3eea60cd84788e527e37225d /os-posix.c | |
parent | ff6abceefdcf3bd1521d88173323c93abf71eb6b (diff) |
building on windows
still needs lots more testing
Diffstat (limited to 'os-posix.c')
-rw-r--r-- | os-posix.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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]) |