From: Felix Fietkau Date: Mon, 4 Feb 2013 19:25:22 +0000 (+0100) Subject: example: ignore SIGPIPE X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad9606401da9bb32bbf4003eea1f0e93b8e8f16c;p=oweals%2Fopenwrt-ustream-ssl.git example: ignore SIGPIPE Signed-off-by: Felix Fietkau --- diff --git a/ustream-example.c b/ustream-example.c index ab9f6f7..3e10543 100644 --- a/ustream-example.c +++ b/ustream-example.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -199,6 +200,7 @@ int main(int argc, char **argv) { int ch; + signal(SIGPIPE, SIG_IGN); ctx = ustream_ssl_context_new(true); ustream_ssl_context_set_crt_file(ctx, "example.crt"); ustream_ssl_context_set_key_file(ctx, "example.key");