diff options
author | Eric Wong <e@80x24.org> | 2019-06-24 02:52:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-24 05:26:26 +0000 |
commit | ca05b93cddfa2cc495451410222af3753bfe1b4e (patch) | |
tree | a6a1b6c437341c82ab3545eeec926956ae76f05c /lib/PublicInbox/Syscall.pm | |
parent | dbcdabe601cfb29c8b7d5f169be9bf560d656a42 (diff) | |
download | public-inbox-ca05b93cddfa2cc495451410222af3753bfe1b4e.tar.gz |
We don't need to keep track of that field since we always know what events we're interested in when using one-shot wakeups.
Diffstat (limited to 'lib/PublicInbox/Syscall.pm')
-rw-r--r-- | lib/PublicInbox/Syscall.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm index 17fd1398..f1988e61 100644 --- a/lib/PublicInbox/Syscall.pm +++ b/lib/PublicInbox/Syscall.pm @@ -24,11 +24,11 @@ $VERSION = "0.25"; @EXPORT_OK = qw(sendfile epoll_ctl epoll_create epoll_wait EPOLLIN EPOLLOUT EPOLL_CTL_ADD EPOLL_CTL_DEL EPOLL_CTL_MOD - EPOLLEXCLUSIVE); + EPOLLONESHOT EPOLLEXCLUSIVE); %EXPORT_TAGS = (epoll => [qw(epoll_ctl epoll_create epoll_wait EPOLLIN EPOLLOUT EPOLL_CTL_ADD EPOLL_CTL_DEL EPOLL_CTL_MOD - EPOLLEXCLUSIVE)], + EPOLLONESHOT EPOLLEXCLUSIVE)], sendfile => [qw(sendfile)], ); @@ -38,7 +38,7 @@ use constant EPOLLOUT => 4; # use constant EPOLLHUP => 16; # use constant EPOLLRDBAND => 128; use constant EPOLLEXCLUSIVE => (1 << 28); -# use constant EPOLLONESHOT => (1 << 30); +use constant EPOLLONESHOT => (1 << 30); # use constant EPOLLET => (1 << 31); use constant EPOLL_CTL_ADD => 1; use constant EPOLL_CTL_DEL => 2; |