aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-28 12:37:58 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-28 12:37:58 +0000
commit08f15335b5b469b29cbdacd0fc5ba48d76acf280 (patch)
tree1d1cbf606965c350dbd152673d8228019b6192ab /main.c
parentbd36966bed1d14461557973f91adf4f29bc92c08 (diff)
downloadandroid_external_rsync-08f15335b5b469b29cbdacd0fc5ba48d76acf280.tar.gz
android_external_rsync-08f15335b5b469b29cbdacd0fc5ba48d76acf280.tar.bz2
android_external_rsync-08f15335b5b469b29cbdacd0fc5ba48d76acf280.zip
switch to using socketpair instead of pipe if possible. This fixes the
ssh clag problems as long as you also fix the same problem in sshd removed all the old read buffering code from io.c as this was only there to try to reduce the chance of clagging up sshd.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index a5467782..80839de3 100644
--- a/main.c
+++ b/main.c
@@ -294,12 +294,12 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
}
}
- if (pipe(recv_pipe) < 0) {
+ if (fd_pair(recv_pipe) < 0) {
rprintf(FERROR,"pipe failed in do_recv\n");
exit_cleanup(RERR_SOCKETIO);
}
- if (pipe(error_pipe) < 0) {
+ if (fd_pair(error_pipe) < 0) {
rprintf(FERROR,"error pipe failed in do_recv\n");
exit_cleanup(RERR_SOCKETIO);
}