about summary refs log tree commit homepage
path: root/lib/PublicInbox/MsgTime.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-11 07:20:50 +0000
committerEric Wong <e@80x24.org>2023-10-11 22:10:43 +0000
commita7c337f88a1768fdc7d4d5a06b52d566ddc99c19 (patch)
tree1c67cf3467ceeeb2a9ad58ae96e33834ba493687 /lib/PublicInbox/MsgTime.pm
parent01e282ff7524256e8cc8e32a10baaa642ee76b70 (diff)
downloadpublic-inbox-a7c337f88a1768fdc7d4d5a06b52d566ddc99c19.tar.gz
Instead of having tail(1) follow a file when we're in verbose
mode, unconditionally pipe stderr to a Perl 2-liner which tees
its output to a regular file with line buffering.

POSIX tee(1) isn't suitable for this task since it's required
to be completely unbuffered while we want line-buffering when
running parallel processes.  Fortunately, Perl makes this easy.

This also means we no longer leave curl-err.XXXX files around
on premature shutdown if we're hit by a SIGKILL or similar and
can't exit normally.

We do need to stop and respawn the Perl process if we hit a curl
error, though, since we need to be certain the output is
flushed.
Diffstat (limited to 'lib/PublicInbox/MsgTime.pm')
0 files changed, 0 insertions, 0 deletions