diff options
author | Eric Wong <e@80x24.org> | 2022-12-23 12:51:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-12-23 22:20:36 +0000 |
commit | d8f49eed19346690c33f5d9da5fbaf041f065f0f (patch) | |
tree | b10fffa3a206280f1ef783960c9556ddbb2fbedf /lib/PublicInbox/Syscall.pm | |
parent | 1556c660030b7ebb4006f522026e638285e94f46 (diff) | |
download | public-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/Syscall.pm')
-rw-r--r-- | lib/PublicInbox/Syscall.pm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm index ee4c6107..bda9bbb0 100644 --- a/lib/PublicInbox/Syscall.pm +++ b/lib/PublicInbox/Syscall.pm @@ -285,8 +285,6 @@ if ($^O eq "linux") { # epoll functions ############################################################################ -sub epoll_defined { $SYS_epoll_create ? 1 : 0; } - sub epoll_create { syscall($SYS_epoll_create, $no_deprecated ? 0 : 100); } |