diff --git a/server/http_server.c b/server/http_server.c index b7565b0..29735ff 100644 --- a/server/http_server.c +++ b/server/http_server.c @@ -14,6 +14,7 @@ bool running = true; void handle_signal(int signal) { if (signal == SIGPIPE) { + // We must ignore SIGPIPEs such that EPIPEs can be returned from socket read/write functions. return; } if (signal == SIGINT || signal == SIGTERM) {