Skip to content

Commit 41adb34

Browse files
davidbenagl
authored andcommitted
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 <[email protected]>
1 parent 1c2473e commit 41adb34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tool/tool.cc

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <io.h>
2525
#else
2626
#include <libgen.h>
27+
#include <signal.h>
2728
#endif
2829

2930
#include "internal.h"
@@ -106,6 +107,8 @@ int main(int argc, char **argv) {
106107
perror("_setmode(_fileno(stderr), O_BINARY)");
107108
return 1;
108109
}
110+
#else
111+
signal(SIGPIPE, SIG_IGN);
109112
#endif
110113

111114
CRYPTO_library_init();

0 commit comments

Comments
 (0)