Skip to content

Commit

Permalink
example: ignore SIGPIPE
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Sep 8, 2020
1 parent 9410e7e commit 15c2b53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15c2b53

Please sign in to comment.