From 1b85b63f9771d1b4dcaa43f383d9f461e0ccd036 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 24 May 2007 12:29:29 +0200 Subject: [PATCH] file: set_nonblocking_fd when reading from the copiousoutput's pipe. --- src/protocol/file/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol/file/file.c b/src/protocol/file/file.c index 6940998b..b2941d90 100644 --- a/src/protocol/file/file.c +++ b/src/protocol/file/file.c @@ -256,6 +256,7 @@ read_special(struct connection *conn, int fd) memcpy(rb->data, header, length); rb->length = length; rb->freespace -= length; + set_nonblocking_fd(fd); conn->unrestartable = 1; conn->socket->state = SOCKET_END_ONCLOSE;