Changeset 1093
- Timestamp:
- 10/08/07 09:14:16 (1 year ago)
- Files:
-
- trunk/pdns/pdns/portsmplexer.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/portsmplexer.cc
r1091 r1093 92 92 gettimeofday(now,0); 93 93 94 if(ret < 0) { 95 if(errno!=EINTR && errno!=ETIME) 94 /* port_getn has an unusual API - (ret == -1, errno == ETIME) can 95 mean partial success; you must check (*numevents) in this case 96 and process anything in there, otherwise you'll never see any 97 events from that object again. We don't care about pure timeouts 98 (ret == -1, errno == ETIME, *numevents == 0) so we don't bother 99 with that case. */ 100 if(ret < 0 && errno!=ETIME) { 101 if(errno!=EINTR) 96 102 throw FDMultiplexerException("completion port_getn returned error: "+stringerror()); 97 // EINTR and ETIME are not really errors103 // EINTR is not really an error 98 104 return 0; 99 105 }