From 08f15335b5b469b29cbdacd0fc5ba48d76acf280 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 28 Jan 2000 12:37:58 +0000 Subject: 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. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') 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); } -- cgit v1.2.3