potential fix for avuton's bug
git-svn-id: https://svn.musicpd.org/mpd/trunk@1850 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
227490e2be
commit
a03466016a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user