Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a6401ca
)
Ignore the SIGPIPE
author
José Bollo
<jose.bollo@iot.bzh>
Thu, 15 Sep 2016 13:29:44 +0000
(15:29 +0200)
committer
José Bollo
<jose.bollo@iot.bzh>
Thu, 15 Sep 2016 13:29:44 +0000
(15:29 +0200)
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>
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
28b452c
..
5871d12
100644
(file)
--- 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)