]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
import: use autodie, rely on PerlIO for retries
authorEric Wong <e@80x24.org>
Sat, 7 Oct 2023 21:24:07 +0000 (21:24 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Oct 2023 18:54:46 +0000 (18:54 +0000)
commit27423677034478018a202e5ddff02c5d2e0de061
treed4e2af0367ec5d5cd986e653d195c109f1cc56a7
parentc917fe83cf9e59030612189f7ffe56aac68e7d2c
import: use autodie, rely on PerlIO for retries

As documented in perlipc(1), the default :perlio layer retries
the `read' perlop on EINTR.  The :perlio layer also makes `read'
perform read-in-full behavior; so there's no need to loop
ourselves.  Our responsibility is now only to detect short reads
in case fast-import is killed mid-stream.
lib/PublicInbox/Import.pm