From 5161b1ecf102f6190c4ce04436eedcc431ef4ad5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Mar 2023 23:07:43 +0000 Subject: cindex: ignore SIGPIPE We check for all socket write errors anyways, and I don't expect stderr output to be significant enough to matter. --- script/public-inbox-cindex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') diff --git a/script/public-inbox-cindex b/script/public-inbox-cindex index f8a3ebbb..fb906bad 100755 --- a/script/public-inbox-cindex +++ b/script/public-inbox-cindex @@ -36,7 +36,8 @@ die "--jobs must be >= 0\n" if defined $opt->{jobs} && $opt->{jobs} < 0; require IO::Handle; STDOUT->autoflush(1); STDERR->autoflush(1); -local $SIG{USR1} = 'IGNORE'; # to be overridden in cidx_sync +$SIG{USR1} = 'IGNORE'; # to be overridden in cidx_sync +$SIG{PIPE} = 'IGNORE'; # require lazily to speed up --help require PublicInbox::Admin; PublicInbox::Admin::do_chdir(delete $opt->{C}); -- cgit v1.2.3-24-ge0c7