1 # Copyright (C) 2020 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 # used to ensure PublicInbox::DS can call fileno() as a function
5 # on Linux::Inotify2 objects
6 package PublicInbox::In2Tie;
10 my ($class, $in2) = @_;
11 bless \$in2, $class; # a scalar reference to an existing reference
14 # this calls Linux::Inotify2::fileno
15 sub FILENO { ${$_[0]}->fileno }