From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 826201F53F for ; Tue, 21 Mar 2023 23:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1679440069; bh=CRc1+rLXwuzRYaRKbD8LFPriIzs7xFSd9irtzRZrhrs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RNq3XQoAfro51E72mqeWREB9IpSpgZiOlGkStGX/2555ker3NwwArZggoPTzMrAiN pzWmwUvCBFtu5QQrJfftqr2DzeHsDF9JzbtjLOnOTYsuQ+6+fZheHmuYBR2dQVvLEv ZGt7wUK6L8DVla3hOA8ROLIT3KLQeIlRHCrr2Az8= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 28/28] cindex: ignore SIGPIPE Date: Tue, 21 Mar 2023 23:07:43 +0000 Message-Id: <20230321230743.3020032-28-e@80x24.org> In-Reply-To: <20230321230743.3020032-1-e@80x24.org> References: <20230321230701.3019936-1-e@80x24.org> <20230321230743.3020032-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(-) 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});