aboutsummaryrefslogtreecommitdiffstats
path: root/src/myfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/myfprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/myfprintf.c b/src/myfprintf.c
index e73f307f9..aec6e7bc9 100644
--- a/src/myfprintf.c
+++ b/src/myfprintf.c
@@ -42,6 +42,7 @@ void blockingWrite(int fd, char * string, int len) {
while(len) {
ret = write(fd,string,len);
+ if(ret==0) return;
if(ret<0) {
switch(errno) {
case EAGAIN: