if(ret < 0 && errno!=EINTR)
throw FDMultiplexerException("select returned error: "+stringerror());
- if(ret==0) // nothing
+ if(ret < 1) // thanks AB!
return 0;
d_inrun=true;
if(ret < 0 && errno!=EINTR)
throw FDMultiplexerException("kqueue returned error: "+stringerror());
- if(ret==0) // nothing
+ if(ret < 0) // nothing - thanks AB!
return 0;
d_inrun=true;
if(ret < 0 && errno!=EINTR)
throw FDMultiplexerException("select returned error: "+stringerror());
- if(ret==0) // nothing
+ if(ret < 1) // nothing - thanks AB
return 0;
d_iter=d_readCallbacks.end();