summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorMatthias Lederhofer <matled@gmx.net>2006-07-13 11:07:59 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-14 04:50:22 (GMT)
commit5f490ce03c16411b737374c12ed377c74af1ca9d (patch)
tree9498e267876f782ebb4df8c76948ba2e14299550 /upload-pack.c
parent258e93a155f88fd7385e4d1e26f287044ba973e9 (diff)
downloadgit-5f490ce03c16411b737374c12ed377c74af1ca9d.zip
git-5f490ce03c16411b737374c12ed377c74af1ca9d.tar.gz
git-5f490ce03c16411b737374c12ed377c74af1ca9d.tar.bz2
upload-pack: ignore write errors to stderr
Signed-off-by: Matthias Lederhofer <matled@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c
index b18eb9b..94aa0da 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;