about summary refs log tree commit homepage
path: root/lib/PublicInbox/DS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-23 12:51:07 +0000
committerEric Wong <e@80x24.org>2022-12-23 22:20:36 +0000
commitd8f49eed19346690c33f5d9da5fbaf041f065f0f (patch)
treeb10fffa3a206280f1ef783960c9556ddbb2fbedf /lib/PublicInbox/DS.pm
parent1556c660030b7ebb4006f522026e638285e94f46 (diff)
downloadpublic-inbox-d8f49eed19346690c33f5d9da5fbaf041f065f0f.tar.gz
We can just check defined() on the `our' var itself and
save the process several kilobytes of memory.
Diffstat (limited to 'lib/PublicInbox/DS.pm')
-rw-r--r--lib/PublicInbox/DS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm
index 26840662..a6c43b22 100644
--- a/lib/PublicInbox/DS.pm
+++ b/lib/PublicInbox/DS.pm
@@ -126,7 +126,7 @@ sub add_uniq_timer { # ($name, $secs, $coderef, @args) = @_;
 
 # caller sets return value to $Epoll
 sub _InitPoller () {
-        if (PublicInbox::Syscall::epoll_defined())  {
+        if (defined $PublicInbox::Syscall::SYS_epoll_create)  {
                 my $fd = epoll_create();
                 die "epoll_create: $!" if $fd < 0;
                 open($ep_io, '+<&=', $fd) or return;