[server,proxy] annotate bugprone-signal-handler
This commit is contained in:
parent
ee81bb017b
commit
e95707f3c7
@ -49,6 +49,7 @@ static const char* strsignal(int signum)
|
||||
}
|
||||
#endif
|
||||
|
||||
// NOLINTBEGIN(bugprone-signal-handler,cert-msc54-cpp,cert-sig30-c)
|
||||
static void cleanup_handler(int signum)
|
||||
{
|
||||
WLog_INFO(TAG, "caught signal %s [%d], starting cleanup...", strsignal(signum), signum);
|
||||
@ -56,6 +57,7 @@ static void cleanup_handler(int signum)
|
||||
WLog_INFO(TAG, "stopping all connections.");
|
||||
pf_server_stop(server);
|
||||
}
|
||||
// NOLINTEND(bugprone-signal-handler,cert-msc54-cpp,cert-sig30-c)
|
||||
|
||||
static void pf_server_register_signal_handlers(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user