Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a60fdd6
)
Make sure we only use blocking-I/O if blocking_io is > 0.
author
Wayne Davison
<wayned@samba.org>
Mon, 15 Dec 2003 18:45:07 +0000
(18:45 +0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 15 Dec 2003 18:45:07 +0000
(18:45 +0000)
pipe.c
patch
|
blob
|
blame
|
history
diff --git
a/pipe.c
b/pipe.c
index
59a0d76
..
3d418a1
100644
(file)
--- 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);
close(from_child_pipe[1]);
umask(orig_umask);
set_blocking(STDIN_FILENO);
- if (blocking_io
) {
+ if (blocking_io
> 0)
set_blocking(STDOUT_FILENO);
set_blocking(STDOUT_FILENO);
- }
execvp(command[0], command);
rprintf(FERROR, "Failed to exec %s : %s\n",
command[0], strerror(errno));
execvp(command[0], command);
rprintf(FERROR, "Failed to exec %s : %s\n",
command[0], strerror(errno));