aboutsummaryrefslogtreecommitdiffstats
path: root/src/myfprintf.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-07-12 15:23:07 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-07-12 15:23:07 +0000
commita03466016a80a85d3994480e621f1fc3b51929b7 (patch)
treeb74a3974ecab5c20963dab633e6504f74d1bdb9e /src/myfprintf.c
parent227490e2be8029318beb488c404f9efdaedb852f (diff)
downloadmpd-a03466016a80a85d3994480e621f1fc3b51929b7.tar.gz
mpd-a03466016a80a85d3994480e621f1fc3b51929b7.tar.xz
mpd-a03466016a80a85d3994480e621f1fc3b51929b7.zip
potential fix for avuton's bug
git-svn-id: https://svn.musicpd.org/mpd/trunk@1850 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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: