Commit fdd101c4 authored by Max Kellermann's avatar Max Kellermann

event/SignalMonitor: add `noexcept`

parent 4218f56f
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
using SocketMonitor::GetEventLoop; using SocketMonitor::GetEventLoop;
#ifdef USE_SIGNALFD #ifdef USE_SIGNALFD
void Update(sigset_t &mask) { void Update(sigset_t &mask) noexcept {
const bool was_open = SocketMonitor::IsDefined(); const bool was_open = SocketMonitor::IsDefined();
fd.Create(mask); fd.Create(mask);
...@@ -75,7 +75,7 @@ public: ...@@ -75,7 +75,7 @@ public:
} }
} }
#else #else
void WakeUp() { void WakeUp() noexcept {
fd.Write(); fd.Write();
} }
#endif #endif
...@@ -105,7 +105,7 @@ static Manual<SignalMonitor> monitor; ...@@ -105,7 +105,7 @@ static Manual<SignalMonitor> monitor;
* would inherit the blocked signals. * would inherit the blocked signals.
*/ */
static void static void
at_fork_child() at_fork_child() noexcept
{ {
sigprocmask(SIG_UNBLOCK, &signal_mask, nullptr); sigprocmask(SIG_UNBLOCK, &signal_mask, nullptr);
} }
...@@ -113,7 +113,7 @@ at_fork_child() ...@@ -113,7 +113,7 @@ at_fork_child()
#else #else
static void static void
SignalCallback(int signo) SignalCallback(int signo) noexcept
{ {
assert(signal_handlers[signo]); assert(signal_handlers[signo]);
......
...@@ -59,7 +59,7 @@ SignalMonitorInit(EventLoop &) ...@@ -59,7 +59,7 @@ SignalMonitorInit(EventLoop &)
} }
static inline void static inline void
SignalMonitorFinish() SignalMonitorFinish() noexcept
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment