]> Sergey Matveev's repositories - public-inbox.git/commit
lei: close inotify FD in forked child
authorEric Wong <e@80x24.org>
Thu, 29 Jul 2021 10:01:31 +0000 (10:01 +0000)
committerEric Wong <e@80x24.org>
Wed, 4 Aug 2021 10:04:23 +0000 (10:04 +0000)
commit7fc6e30aeab9925bece4bb00f88bb91af5646aa2
treea97e16eb1d89fdfb1ba6552f7a5cf36318c10d0f
parentdd80dcaa1e46543893de533938a1651639f91f10
lei: close inotify FD in forked child

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
MANIFEST
lib/PublicInbox/DirIdle.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/LI2Wrap.pm [new file with mode: 0644]