[MOD/FIX] Be a bit more specific with component errors

This commit is contained in:
lda 2025-01-28 15:01:57 +00:00
commit f9de7f1750
3 changed files with 11 additions and 14 deletions

View file

@ -26,11 +26,6 @@ SignalHandler(int signal)
HttpServerStop(data->server);
return;
}
if (signal == SIGPIPE)
{
Log(LOG_DEBUG, "Caught a SIGPIPE...");
return;
}
}
bool
@ -46,7 +41,7 @@ ParseeInitialiseSignals(ParseeData *d, pthread_t xmpp)
sa.sa_flags = SA_RESTART;
#define Register(act) (sigaction(act, &sa, NULL) >= 0)
if (!Register(SIGTERM) || !Register(SIGINT) || !Register(SIGPIPE))
if (!Register(SIGTERM) || !Register(SIGINT))
{
Log(LOG_ERR, "Couldn't register signals...");
return false;