X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7c2a9e766c0e162773b291b916521297f24d57c4..65fc84b32e2a558cca3a66587ac4cd06e16f1471:/pipe.c 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));