From 2247105ff37ba7b317e65af9833ecbb0f67f81de Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 19 May 2024 20:52:07 -0700 Subject: [PATCH] Ignore crashes due to SIGPIPE in generate_appcast (#2563) --- generate_appcast/main.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generate_appcast/main.swift b/generate_appcast/main.swift index ceba7c109..d497bf5ae 100644 --- a/generate_appcast/main.swift +++ b/generate_appcast/main.swift @@ -248,6 +248,10 @@ struct GenerateAppcast: ParsableCommand { } func run() throws { + // Ignore SIGPIPE because we won't want read or write failures due to broken pipe to unexpectably + // terminate the process, when extracting archives + signal(SIGPIPE, SIG_IGN) + // Extract the keys let privateDSAKey : SecKey? #if GENERATE_APPCAST_BUILD_LEGACY_DSA_SUPPORT