From 15c2b53bcb0fe437d8bdf2aa6ee5831e5a6ac106 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Tue, 8 Sep 2020 22:41:03 +0800 Subject: [PATCH] example: ignore SIGPIPE Signed-off-by: Jianhui Zhao --- example/example.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/example.c b/example/example.c index 762b3f6..718db4f 100644 --- a/example/example.c +++ b/example/example.c @@ -108,6 +108,8 @@ int main(int argc, char **argv) uh_log_info("libuhttpd version: %s\n", UHTTPD_VERSION_STRING); + signal(SIGPIPE, SIG_IGN); + srv = uh_server_new(loop, "0.0.0.0", port); if (!srv) return -1;