X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=tools%2Fclient.c;h=552b7f9d3aa2651e89d78301bb748022a92b8817;hp=2c2985fca37e73a7cd38faacb97115b79842db56;hb=3b044d4296b1dffa5586658e152e1c7bd8144410;hpb=7561e7d6c86171257a4153d95202b0791b3612a8 diff --git a/tools/client.c b/tools/client.c index 2c2985f..552b7f9 100644 --- a/tools/client.c +++ b/tools/client.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -619,6 +620,11 @@ do_client(int argc, char *argv[]) br_ssl_engine_set_buffer(&cc.eng, iobuf, iobuf_len, bidi); br_ssl_client_reset(&cc, sni, 0); + /* + * We need to avoid SIGPIPE. + */ + signal(SIGPIPE, SIG_IGN); + /* * Connect to the peer. */