From ad9606401da9bb32bbf4003eea1f0e93b8e8f16c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 4 Feb 2013 20:25:22 +0100 Subject: [PATCH] example: ignore SIGPIPE Signed-off-by: Felix Fietkau --- ustream-example.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.25.1