diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-01-27 10:44:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-27 10:44:59 -0800 |
commit | 7b4e2b7e6aba677fcefffde79d0d3a53ae623b4f (patch) | |
tree | ece06476fdfbb8ea18973ff3b1eddd62cea1ca39 /transport-helper.c | |
parent | de20e4472157d0ed53bdc6374185a2ce3c7c9f3d (diff) | |
parent | c9df6f4574c0174efd5000e0e99dca97ddb5034c (diff) | |
download | git-7b4e2b7e6aba677fcefffde79d0d3a53ae623b4f.tar.gz |
Merge branch 'ef/mingw-write'
* ef/mingw-write:
mingw: remove mingw_write
prefer xwrite instead of write
Diffstat (limited to 'transport-helper.c')
-rw-r--r-- | transport-helper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/transport-helper.c b/transport-helper.c index 087f617d39..ad72fbd53c 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -1135,9 +1135,8 @@ static int udt_do_write(struct unidirectional_transfer *t) return 0; /* Nothing to write. */ transfer_debug("%s is writable", t->dest_name); - bytes = write(t->dest, t->buf, t->bufuse); - if (bytes < 0 && errno != EWOULDBLOCK && errno != EAGAIN && - errno != EINTR) { + bytes = xwrite(t->dest, t->buf, t->bufuse); + if (bytes < 0 && errno != EWOULDBLOCK) { error("write(%s) failed: %s", t->dest_name, strerror(errno)); return -1; } else if (bytes > 0) { |