summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 28b452c2..5871d125 100644
--- a/src/main.c
+++ b/src/main.c
@@ -678,6 +678,9 @@ int main(int argc, char *argv[]) {
INFO("entering foreground mode");
}
+ /* ignore any SIGPIPE */
+ signal(SIGPIPE, SIG_IGN);
+
/* start the HTTP server */
hsrv = start_http_server(config);
if (hsrv == NULL)