about summary refs log tree commit homepage
path: root/lib/PublicInbox/DirIdle.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-02 09:35:28 +0000
committerEric Wong <e@80x24.org>2023-11-02 23:46:54 +0000
commitdb47ea523760f7ceef3d38c0008e082e9e7d1c02 (patch)
treec16385b1824df5bc506fbe4c983e8fe3a31d0a48 /lib/PublicInbox/DirIdle.pm
parent52cd1dd47c83f18681bab081db5041f8bfa5dfbe (diff)
downloadpublic-inbox-db47ea523760f7ceef3d38c0008e082e9e7d1c02.tar.gz
treewide: use ->close method rather than CORE::close
It's easier-to-read and should open the door for us to get rid
of `tie' for ProcessIO without performance penalties for
more frequently-used perlop calls and ability to do `stat' directly
on the object instead of the awkward `tied' thing.
Diffstat (limited to 'lib/PublicInbox/DirIdle.pm')
-rw-r--r--lib/PublicInbox/DirIdle.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/DirIdle.pm b/lib/PublicInbox/DirIdle.pm
index de6f229b..e6a326ab 100644
--- a/lib/PublicInbox/DirIdle.pm
+++ b/lib/PublicInbox/DirIdle.pm
@@ -89,7 +89,7 @@ sub force_close {
         my ($self) = @_;
         my $inot = delete $self->{inot} // return;
         if ($inot->can('fh')) { # Linux::Inotify2 2.3+
-                CORE::close($inot->fh) or warn "CLOSE ERROR: $!";
+                $inot->fh->close or warn "CLOSE ERROR: $!";
         } elsif ($inot->isa('Linux::Inotify2')) {
                 require PublicInbox::LI2Wrap;
                 PublicInbox::LI2Wrap::wrapclose($inot);