Skip to content

Commit

Permalink
upload-pack: ignore write errors to stderr
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Matthias Lederhofer authored and Junio C Hamano committed Jul 14, 2006
1 parent 258e93a commit 5f490ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions upload-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f490ce

Please sign in to comment.