From b950a20afde7f8dff4b38db214120b3d1de2e10f Mon Sep 17 00:00:00 2001 From: José Bollo Date: Thu, 15 Sep 2016 15:29:44 +0200 Subject: Ignore the SIGPIPE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default action is to stop the daemon. This is not the intended behaviour because the sriting errors are checked and EPIPE is treated. Change-Id: I9132b683e443825e4c056301a89bfad752a99e0c Signed-off-by: José Bollo --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit