commit | 41adb341b8c51fbb7d075abe05e80080358406ea | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Wed Sep 15 10:19:47 2021 -0400 |
committer | Adam Langley <agl@google.com> | Thu Sep 16 17:05:05 2021 +0000 |
tree | 97f06cabfb3ca3c98bc151d418f35db01ebb4f81 | |
parent | 1c2473ebae2411949027c950eea5261a3a8f7922 [diff] |
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();