mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[MOD/FIX] Be a bit more specific with component errors
This commit is contained in:
parent
389870c5d3
commit
f9de7f1750
3 changed files with 11 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue