diff options
author | Eric Wong <e@80x24.org> | 2019-06-26 07:58:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-26 07:58:15 +0000 |
commit | 7d7e5013e3d2e56c48735698e39890e8f67b6b56 (patch) | |
tree | 4ead243f0c08ce31bf8da9ada8bcda05ad63bc22 /lib/PublicInbox/DS.pm | |
parent | 84d8920b92686e975929aebe845b6d4ea0a9ef0d (diff) | |
download | public-inbox-7d7e5013e3d2e56c48735698e39890e8f67b6b56.tar.gz |
On Linux systems with epoll support, we don't want to be clobbering defined subs in the t/ds-poll.t test; so use OO ->method dispatch instead and require users to explicitly import subs via EXPORT_OK.
Diffstat (limited to 'lib/PublicInbox/DS.pm')
-rw-r--r-- | lib/PublicInbox/DS.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index 08f4e9e8..a8700bc5 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -151,7 +151,7 @@ sub _InitPoller $cls = "PublicInbox::$_"; last if eval "require $cls"; } - $cls->import; + $cls->import(qw(epoll_ctl epoll_wait)); $Epoll = $cls->new; } *EventLoop = *EpollEventLoop; |