]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
cindex: ignore SIGPIPE
authorEric Wong <e@80x24.org>
Tue, 21 Mar 2023 23:07:43 +0000 (23:07 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 Mar 2023 09:38:02 +0000 (09:38 +0000)
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

index f8a3ebbbe809037e2ce564d3a193de1da8096c95..fb906bad32ba82a0aa5819525c01bf9cdc06cf90 100755 (executable)
@@ -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});