commit | a9fa5bf248c091847c9d6f3ab0f15cc14074e85f | [log] [tgz] |
---|---|---|
author | Christopher Kohlhoff <chris@kohlhoff.com> | Sat Aug 27 23:41:20 2016 -0400 |
committer | Christopher Kohlhoff <chris@kohlhoff.com> | Sun Aug 28 23:27:51 2016 +1000 |
tree | f277ab6d0333f47f7f07307aee0438aa9cc0332c | |
parent | 0d78be17cf6a83816058b7bf33b8fc252f65e21e [diff] |
Add limited support for regular file descriptors. The epoll_reactor now supports the use of regular file descriptors with posix::stream_descriptor, provided the I/O operations on them never fail with EAGAIN or EWOULDBLOCK. If the descriptor cannot be added to the epoll set using epoll_ctl, and errno is EPERM (indicating an unsupported descriptor type), then no error condition is raised. Instead, any operation which would require a trip through the reactor will fail.