summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-06 11:48:35 +0200
committerMax Kellermann <max@musicpd.org>2018-08-06 12:00:49 +0200
commitfdd101c4c56fd3d3b5ff9ee12016387d6fb88df1 (patch)
treeca2c4317ab2ed4f1b135fb337a9ad0a86aa29d93 /src/event
parent4218f56f6c83fe02a95a97ecdc83346941e3c77c (diff)
event/SignalMonitor: add `noexcept`
Diffstat (limited to 'src/event')
-rw-r--r--src/event/SignalMonitor.cxx8
-rw-r--r--src/event/SignalMonitor.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/event/SignalMonitor.cxx b/src/event/SignalMonitor.cxx
index 3c9c8dc57..71f603904 100644
--- a/src/event/SignalMonitor.cxx
+++ b/src/event/SignalMonitor.cxx
@@ -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]);
diff --git a/src/event/SignalMonitor.hxx b/src/event/SignalMonitor.hxx
index 785293633..1930b3bcb 100644
--- a/src/event/SignalMonitor.hxx
+++ b/src/event/SignalMonitor.hxx
@@ -59,7 +59,7 @@ SignalMonitorInit(EventLoop &)
}
static inline void
-SignalMonitorFinish()
+SignalMonitorFinish() noexcept
{
}