Capture sigpipes
This commit is contained in:
parent
fbef0f4628
commit
ea35a8dd93
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ void signal_init(struct evt_core_ctx* evts) {
|
||||||
sigaddset(&mask, SIGINT);
|
sigaddset(&mask, SIGINT);
|
||||||
sigaddset(&mask, SIGQUIT);
|
sigaddset(&mask, SIGQUIT);
|
||||||
sigaddset(&mask, SIGTERM);
|
sigaddset(&mask, SIGTERM);
|
||||||
|
sigaddset(&mask, SIGPIPE);
|
||||||
if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1) {
|
if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1) {
|
||||||
perror("sigprocmask");
|
perror("sigprocmask");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
Loading…
Reference in a new issue