summaryrefslogtreecommitdiffstats
path: root/include/writeall.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/writeall.h')
-rw-r--r--include/writeall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/writeall.h b/include/writeall.h
index a04496d8f..20207076d 100644
--- a/include/writeall.h
+++ b/include/writeall.h
@@ -18,6 +18,8 @@ static inline int write_all(int fd, const void *buf, size_t count)
buf += tmp;
} else if (errno != EINTR && errno != EAGAIN)
return -1;
+ if (errno == EAGAIN) /* Try later, *sigh* */
+ usleep(10000);
}
return 0;
}