example: ignore SIGPIPE

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-09-08 22:41:03 +08:00
parent 9410e7eca9
commit 15c2b53bcb
1 changed files with 2 additions and 0 deletions

View File

@ -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;