diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-07-12 15:23:07 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-07-12 15:23:07 +0000 |
commit | a03466016a80a85d3994480e621f1fc3b51929b7 (patch) | |
tree | b74a3974ecab5c20963dab633e6504f74d1bdb9e /src | |
parent | 227490e2be8029318beb488c404f9efdaedb852f (diff) | |
download | mpd-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.c | 1 |
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: |