Ignore crashes due to SIGPIPE in generate_appcast (#2563)

This commit is contained in:
Zorg authored and GitHub committed 2024-05-19 20:52:07 -07:00
1 parent f904466d35
commit 2247105ff3
1 file changed
+4
+4
View File
@@ -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