]> Sergey Matveev's repositories - public-inbox.git/commit
lei: always keep cwd fd {3} for ->fchdir
authorEric Wong <e@80x24.org>
Sat, 16 Oct 2021 01:00:57 +0000 (01:00 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Oct 2021 01:42:51 +0000 (01:42 +0000)
commit13e60633b0a4fd31f224bf172c976e8d921ec609
treeec9b816502f35427659ae0cc1aef558588b786b1
parentd63226bf4107f71b25c74abdcc5483d192c505fe
lei: always keep cwd fd {3} for ->fchdir

The extra FD shouldn't cause noticeable overhead in short-lived
workers, and it lets us simplify lei->rel2abs.  Get rid of a
2-argument form of open() while we're at it, since it's been
considered for warning+deprecation by Perl for safety reasons.
lib/PublicInbox/LEI.pm