[FIX] Catch SIGPIPEs

This commit is contained in:
LDA 2024-09-18 05:55:47 +02:00
commit 420c05690f

View file

@ -38,7 +38,7 @@ ParseeInitialiseSignals(HttpServer *s, pthread_t xmpp, XMPPComponent *j)
sa.sa_flags = SA_RESTART; sa.sa_flags = SA_RESTART;
#define Register(act) (sigaction(act, &sa, NULL) >= 0) #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..."); Log(LOG_ERR, "Couldn't register signals...");
return false; return false;