mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-04-25 16:49:42 -04:00
Make sure we only use blocking-I/O if blocking_io is > 0.
This commit is contained in:
3
pipe.c
3
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));
|
||||
|
||||
Reference in New Issue
Block a user