diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-05 21:34:09 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-05 21:36:35 +0100 |
commit | 40bde1eac9822b0806c60fa9bb656993d564b586 (patch) | |
tree | 2f97902fbe4767b6e9f5e91860b40bca1a107d93 /src/unix | |
parent | 4b55ed17a9ef07f01be3dff662fe7796165ecc01 (diff) |
unix/SignalHandlers: add `noexcept`
Diffstat (limited to 'src/unix')
-rw-r--r-- | src/unix/SignalHandlers.cxx | 6 | ||||
-rw-r--r-- | src/unix/SignalHandlers.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/unix/SignalHandlers.cxx b/src/unix/SignalHandlers.cxx index 3fcf83289..5a0131929 100644 --- a/src/unix/SignalHandlers.cxx +++ b/src/unix/SignalHandlers.cxx @@ -33,7 +33,7 @@ static constexpr Domain signal_handlers_domain("signal_handlers"); static void -HandleShutdownSignal(void *ctx) +HandleShutdownSignal(void *ctx) noexcept { auto &loop = *(EventLoop *)ctx; loop.Break(); @@ -47,7 +47,7 @@ x_sigaction(int signum, const struct sigaction *act) } static void -handle_reload_event(void *) +handle_reload_event(void *) noexcept { LogDebug(signal_handlers_domain, "got SIGHUP, reopening log files"); cycle_log_files(); @@ -76,7 +76,7 @@ SignalHandlersInit(EventLoop &loop) } void -SignalHandlersFinish() +SignalHandlersFinish() noexcept { SignalMonitorFinish(); } diff --git a/src/unix/SignalHandlers.hxx b/src/unix/SignalHandlers.hxx index 241a38a44..d17c0504c 100644 --- a/src/unix/SignalHandlers.hxx +++ b/src/unix/SignalHandlers.hxx @@ -26,6 +26,6 @@ void SignalHandlersInit(EventLoop &loop); void -SignalHandlersFinish(); +SignalHandlersFinish() noexcept; #endif |