tree-diff: remove special-case diff-emitting code for empty-tree cases
[gitweb.git] / transport-helper.c
index 087f617d39d79be946bdd60c05890eda28c9675c..ad72fbd53cb7bfc7fc037d98288b0cc831ea949a 100644 (file)
@@ -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) {