From 7d3f8ae2df02ed2dff26209ec2cfc22fc8fb6b7f Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 15 Dec 2003 18:45:07 +0000 Subject: [PATCH] Make sure we only use blocking-I/O if blocking_io is > 0. --- pipe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipe.c b/pipe.c index 59a0d762..3d418a1c 100644 --- a/pipe.c +++ b/pipe.c @@ -73,9 +73,8 @@ pid_t piped_child(char **command, int *f_in, int *f_out) close(from_child_pipe[1]); umask(orig_umask); set_blocking(STDIN_FILENO); - if (blocking_io) { + if (blocking_io > 0) set_blocking(STDOUT_FILENO); - } execvp(command[0], command); rprintf(FERROR, "Failed to exec %s : %s\n", command[0], strerror(errno)); -- 2.34.1