unix/SignalHandlers: add `noexcept`
This commit is contained in:
parent
4b55ed17a9
commit
40bde1eac9
|
@ -33,7 +33,7 @@
|
||||||
static constexpr Domain signal_handlers_domain("signal_handlers");
|
static constexpr Domain signal_handlers_domain("signal_handlers");
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HandleShutdownSignal(void *ctx)
|
HandleShutdownSignal(void *ctx) noexcept
|
||||||
{
|
{
|
||||||
auto &loop = *(EventLoop *)ctx;
|
auto &loop = *(EventLoop *)ctx;
|
||||||
loop.Break();
|
loop.Break();
|
||||||
|
@ -47,7 +47,7 @@ x_sigaction(int signum, const struct sigaction *act)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
handle_reload_event(void *)
|
handle_reload_event(void *) noexcept
|
||||||
{
|
{
|
||||||
LogDebug(signal_handlers_domain, "got SIGHUP, reopening log files");
|
LogDebug(signal_handlers_domain, "got SIGHUP, reopening log files");
|
||||||
cycle_log_files();
|
cycle_log_files();
|
||||||
|
@ -76,7 +76,7 @@ SignalHandlersInit(EventLoop &loop)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SignalHandlersFinish()
|
SignalHandlersFinish() noexcept
|
||||||
{
|
{
|
||||||
SignalMonitorFinish();
|
SignalMonitorFinish();
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,6 @@ void
|
||||||
SignalHandlersInit(EventLoop &loop);
|
SignalHandlersInit(EventLoop &loop);
|
||||||
|
|
||||||
void
|
void
|
||||||
SignalHandlersFinish();
|
SignalHandlersFinish() noexcept;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue