diff options
author | Wayne Davison <wayned@samba.org> | 2003-12-15 18:45:07 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-12-15 18:45:07 +0000 |
commit | 7d3f8ae2df02ed2dff26209ec2cfc22fc8fb6b7f (patch) | |
tree | 98793f68e5ccc1d22f033c608b755557c136a1eb | |
parent | a60fdd63f4562a5da5990b388c4f4053d53dc618 (diff) | |
download | rsync-7d3f8ae2df02ed2dff26209ec2cfc22fc8fb6b7f.tar.gz rsync-7d3f8ae2df02ed2dff26209ec2cfc22fc8fb6b7f.tar.bz2 rsync-7d3f8ae2df02ed2dff26209ec2cfc22fc8fb6b7f.zip |
Make sure we only use blocking-I/O if blocking_io is > 0.
-rw-r--r-- | pipe.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)); |