From: Matthias Lederhofer Date: Thu, 13 Jul 2006 11:07:59 +0000 (+0200) Subject: upload-pack: ignore write errors to stderr X-Git-Tag: v1.4.2-rc1~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f490ce03c16411b737374c12ed377c74af1ca9d;p=git.git upload-pack: ignore write errors to stderr Signed-off-by: Matthias Lederhofer Signed-off-by: Junio C Hamano --- 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;