@matheusbsbs / matheus-bagliano / commits / 5f490ce03c
Fork 0

upload-pack: ignore write errors to stderr

Signed-off-by: Matthias Lederhofer <matled@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Matthias Lederhofer committed Jul 13, 2006 at 13:07 UTC 5f490ce03c16411b737374c12ed377c74af1ca9d
1 file changed +4
upload-pack.c
+4
@@ -51,6 +51,10 @@ static ssize_t send_client_data(int fd, const char *data, ssize_t sz)
51 if (fd == 3)
52 /* emergency quit */
53 fd = 2;
54 + if (fd == 2) {
55 + xwrite(fd, data, sz);
56 + return sz;
57 + }
58 return safe_write(fd, data, sz);
59 }
60 p = data;