diff options
author | Eric Wong <e@80x24.org> | 2021-07-29 10:01:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-04 10:04:23 +0000 |
commit | 7fc6e30aeab9925bece4bb00f88bb91af5646aa2 (patch) | |
tree | a97e16eb1d89fdfb1ba6552f7a5cf36318c10d0f /lib/PublicInbox/LEI.pm | |
parent | dd80dcaa1e46543893de533938a1651639f91f10 (diff) | |
download | public-inbox-7fc6e30aeab9925bece4bb00f88bb91af5646aa2.tar.gz |
Linux::Inotify2 2.3+ includes an ->fh method to give us the ability to safely close an FD without hitting EBADF (and automatically use FD_CLOEXEC). We'll still need a new wrapper class (LI2Wrap) to handle it for users of old versions, though. Link: http://lists.schmorp.de/pipermail/perl/2021q3/thread.html
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index d9fd40fd..e6f763e1 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -556,7 +556,7 @@ sub _lei_atfork_child { } close $listener if $listener; undef $listener; - undef $dir_idle; + $dir_idle->force_close if $dir_idle; %PATH2CFG = (); $MDIR2CFGPATH = {}; eval 'no warnings; undef $PublicInbox::LeiNoteEvent::to_flush'; |