diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-09-15 15:29:44 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-09-15 15:29:44 +0200 |
commit | b950a20afde7f8dff4b38db214120b3d1de2e10f (patch) | |
tree | 95108eff6372c8a3b1bece16e12b5d1e83a4e538 | |
parent | a6401ca78446610ffadb7b63c90937caa47d065a (diff) |
Ignore the SIGPIPE
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 <jose.bollo@iot.bzh>
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |