From 5f490ce03c16411b737374c12ed377c74af1ca9d Mon Sep 17 00:00:00 2001 From: Matthias Lederhofer Date: Thu, 13 Jul 2006 13:07:59 +0200 Subject: [PATCH] upload-pack: ignore write errors to stderr Signed-off-by: Matthias Lederhofer Signed-off-by: Junio C Hamano --- upload-pack.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upload-pack.c b/upload-pack.c index b18eb9ba0..94aa0dab4 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -51,6 +51,10 @@ static ssize_t send_client_data(int fd, const char *data, ssize_t sz) if (fd == 3) /* emergency quit */ fd = 2; + if (fd == 2) { + xwrite(fd, data, sz); + return sz; + } return safe_write(fd, data, sz); } p = data; -- 2.30.2