aboutsummaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2021-09-15 10:19:47 -0400
committerAdam Langley <agl@google.com>2021-09-16 17:05:05 +0000
commit41adb341b8c51fbb7d075abe05e80080358406ea (patch)
tree97f06cabfb3ca3c98bc151d418f35db01ebb4f81 /tool
parent1c2473ebae2411949027c950eea5261a3a8f7922 (diff)
downloadboringssl-41adb341b8c51fbb7d075abe05e80080358406ea.zip
boringssl-41adb341b8c51fbb7d075abe05e80080358406ea.tar.gz
boringssl-41adb341b8c51fbb7d075abe05e80080358406ea.tar.bz2
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>
Diffstat (limited to 'tool')
-rw-r--r--tool/tool.cc3
1 files changed, 3 insertions, 0 deletions
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 @@ int main(int argc, char **argv) {
perror("_setmode(_fileno(stderr), O_BINARY)");
return 1;
}
+#else
+ signal(SIGPIPE, SIG_IGN);
#endif
CRYPTO_library_init();