upload-pack: ignore write errors to stderr
Signed-off-by: Matthias Lederhofer <matled@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
258e93a155
commit
5f490ce03c
@ -51,6 +51,10 @@ static ssize_t send_client_data(int fd, const char *data, ssize_t sz)
|
|||||||
if (fd == 3)
|
if (fd == 3)
|
||||||
/* emergency quit */
|
/* emergency quit */
|
||||||
fd = 2;
|
fd = 2;
|
||||||
|
if (fd == 2) {
|
||||||
|
xwrite(fd, data, sz);
|
||||||
|
return sz;
|
||||||
|
}
|
||||||
return safe_write(fd, data, sz);
|
return safe_write(fd, data, sz);
|
||||||
}
|
}
|
||||||
p = data;
|
p = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user