From: José Bollo Date: Thu, 15 Sep 2016 13:29:44 +0000 (+0200) Subject: Ignore the SIGPIPE X-Git-Tag: blowfish_2.0.3~7 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=b950a20afde7f8dff4b38db214120b3d1de2e10f;p=src%2Fapp-framework-binder.git 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 --- 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)