From a03466016a80a85d3994480e621f1fc3b51929b7 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 12 Jul 2004 15:23:07 +0000 Subject: potential fix for avuton's bug git-svn-id: https://svn.musicpd.org/mpd/trunk@1850 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/myfprintf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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: -- cgit v1.2.3