about summary refs log tree commit homepage
path: root/lib/PublicInbox/Syscall.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-13 19:06:27 -1200
committerEric Wong <e@80x24.org>2021-01-15 00:19:12 +0000
commitd1b9582872d1824f166a038dcf32b6ae8c6dc735 (patch)
treeccaef6fb415731b23d83fa9e8a3526d660c5ad18 /lib/PublicInbox/Syscall.pm
parent9ecd339fc32ff9c6b8ddcc98a992f5bcc682077e (diff)
downloadpublic-inbox-d1b9582872d1824f166a038dcf32b6ae8c6dc735.tar.gz
Perl chdir() automatically does fchdir(2) if given a file
or directory handle since 5.8.8/5.10.0, so we can safely
rely on it given our 5.10.1+ requirement.

This means we no longer have to waste several milliseconds
loading the Cwd.so and making stat() calls to ensure
ENV{PWD} is correct and usable in the server.  It also lets
us work in directories that are no longer accessible via
pathname.
Diffstat (limited to 'lib/PublicInbox/Syscall.pm')
0 files changed, 0 insertions, 0 deletions