git-daemon --base-path
[gitweb.git] / tar-tree.c
index bacb23ae6365767dfdc93c6041aa9f3cb673b27b..96bd1438d9033e5bca3841fb85a531ea27070faf 100644 (file)
@@ -34,10 +34,8 @@ struct path_prefix {
 static void reliable_write(void *buf, unsigned long size)
 {
        while (size > 0) {
-               long ret = write(1, buf, size);
+               long ret = xwrite(1, buf, size);
                if (ret < 0) {
-                       if (errno == EAGAIN)
-                               continue;
                        if (errno == EPIPE)
                                exit(0);
                        die("git-tar-tree: %s", strerror(errno));