mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 12:15:12 +00:00
[FIX] Catch SIGPIPEs
This commit is contained in:
parent
f96e0a95bd
commit
420c05690f
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ ParseeInitialiseSignals(HttpServer *s, pthread_t xmpp, XMPPComponent *j)
|
|||
sa.sa_flags = SA_RESTART;
|
||||
|
||||
#define Register(act) (sigaction(act, &sa, NULL) >= 0)
|
||||
if (!Register(SIGTERM) || !Register(SIGINT))
|
||||
if (!Register(SIGTERM) || !Register(SIGINT) || !Register(SIGPIPE))
|
||||
{
|
||||
Log(LOG_ERR, "Couldn't register signals...");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue