Commit 37db6432 authored by Warren Dukes's avatar Warren Dukes

clean-up a wee-bit of code

git-svn-id: https://svn.musicpd.org/mpd/trunk@895 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 22058b9b
......@@ -44,9 +44,14 @@ void blockingWrite(int fd, char * string) {
while(len) {
ret = write(fd,string,len);
if(ret<0) {
if(errno==EAGAIN || errno==EINTR) continue;
switch(errno) {
case EAGAIN:
case EINTR:
continue;
default:
return;
}
}
len-= ret;
string+= ret;
}
......
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