event/SignalMonitor: add `noexcept`

This commit is contained in:
Max Kellermann 2018-08-06 11:48:35 +02:00
parent 4218f56f6c
commit fdd101c4c5
2 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ public:
using SocketMonitor::GetEventLoop;
#ifdef USE_SIGNALFD
void Update(sigset_t &mask) {
void Update(sigset_t &mask) noexcept {
const bool was_open = SocketMonitor::IsDefined();
fd.Create(mask);
@ -75,7 +75,7 @@ public:
}
}
#else
void WakeUp() {
void WakeUp() noexcept {
fd.Write();
}
#endif
@ -105,7 +105,7 @@ static Manual<SignalMonitor> monitor;
* would inherit the blocked signals.
*/
static void
at_fork_child()
at_fork_child() noexcept
{
sigprocmask(SIG_UNBLOCK, &signal_mask, nullptr);
}
@ -113,7 +113,7 @@ at_fork_child()
#else
static void
SignalCallback(int signo)
SignalCallback(int signo) noexcept
{
assert(signal_handlers[signo]);

View File

@ -59,7 +59,7 @@ SignalMonitorInit(EventLoop &)
}
static inline void
SignalMonitorFinish()
SignalMonitorFinish() noexcept
{
}