Commit a0346601 authored by Warren Dukes's avatar Warren Dukes

potential fix for avuton's bug

git-svn-id: https://svn.musicpd.org/mpd/trunk@1850 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 227490e2
...@@ -42,6 +42,7 @@ void blockingWrite(int fd, char * string, int len) { ...@@ -42,6 +42,7 @@ void blockingWrite(int fd, char * string, int len) {
while(len) { while(len) {
ret = write(fd,string,len); ret = write(fd,string,len);
if(ret==0) return;
if(ret<0) { if(ret<0) {
switch(errno) { switch(errno) {
case EAGAIN: case EAGAIN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment