Changeset 14:3caa1d3122db in xplcommon for src/xplcommon/posix/ReadingBuffer.cc
- Timestamp:
- 12/29/12 10:03:12 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/ReadingBuffer.cc
r6 r14 34 34 #include "BufferedWaitable.h" 35 35 36 #include <cerrno>37 38 36 #include <poll.h> 39 37 … … 55 53 ssize_t result = waitable.read(getData(), getCapacity()); 56 54 if (result<0) { 57 if (errno==EAGAIN || errno==EWOULDBLOCK) { 55 if (waitable.failed()) { 56 waitable.events &= ~POLLIN; 57 } else { 58 58 waitable.events |= POLLIN; 59 } else {60 waitable.events &= ~POLLIN;61 setErrorCode(errno);62 59 } 63 60 } else {
Note:
See TracChangeset
for help on using the changeset viewer.