From: Eric Wong Date: Tue, 21 Mar 2023 23:07:43 +0000 (+0000) Subject: cindex: ignore SIGPIPE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5161b1ecf102f6190c4ce04436eedcc431ef4ad5;p=thirdparty%2Fpublic-inbox.git cindex: ignore SIGPIPE We check for all socket write errors anyways, and I don't expect stderr output to be significant enough to matter. --- diff --git a/script/public-inbox-cindex b/script/public-inbox-cindex index f8a3ebbbe..fb906bad3 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});