Commit e4ef4ea6 authored by Warren Dukes's avatar Warren Dukes

make some code look neater

git-svn-id: https://svn.musicpd.org/mpd/trunk@738 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 72e06e05
......@@ -76,11 +76,11 @@ void myfprintf(FILE * fp, char * format, ... ) {
}
else {
vsnprintf(buffer,BUFFER_LENGTH,format,arglist);
if((fcntlret & O_NONBLOCK) &&
interfacePrintWithFD(fd,buffer)==0)
if(!(fcntlret & O_NONBLOCK) ||
interfacePrintWithFD(fd,buffer)<0)
{
blockingWrite(fd,buffer);
}
else blockingWrite(fd,buffer);
}
va_end(arglist);
......
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