Ignore SIGPIPE in the bssl tool. Bug: 435 Change-Id: I0ed94d40d04ebc26c9996dfe2b947a6e2f140a89 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/49465 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/tool/tool.cc b/tool/tool.cc index 7bec7a2..96bde33 100644 --- a/tool/tool.cc +++ b/tool/tool.cc
@@ -24,6 +24,7 @@ #include <io.h> #else #include <libgen.h> +#include <signal.h> #endif #include "internal.h" @@ -106,6 +107,8 @@ perror("_setmode(_fileno(stderr), O_BINARY)"); return 1; } +#else + signal(SIGPIPE, SIG_IGN); #endif CRYPTO_library_init();