[server,proxy] annotate bugprone-signal-handler

This commit is contained in:
akallabeth 2024-09-30 22:21:21 +02:00
parent ee81bb017b
commit e95707f3c7
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -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)
{