summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event/SignalMonitor.hxx2
-rw-r--r--src/system/SignalFD.cxx4
-rw-r--r--src/system/SignalFD.hxx3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/event/SignalMonitor.hxx b/src/event/SignalMonitor.hxx
index cdec98945..785293633 100644
--- a/src/event/SignalMonitor.hxx
+++ b/src/event/SignalMonitor.hxx
@@ -32,6 +32,8 @@ typedef BoundMethod<void()> SignalHandler;
/**
* Initialise the signal monitor subsystem.
+ *
+ * Throws on error.
*/
void
SignalMonitorInit(EventLoop &loop);
diff --git a/src/system/SignalFD.cxx b/src/system/SignalFD.cxx
index 33062a396..d974b6630 100644
--- a/src/system/SignalFD.cxx
+++ b/src/system/SignalFD.cxx
@@ -20,7 +20,7 @@
#include "config.h"
#ifdef USE_SIGNALFD
#include "SignalFD.hxx"
-#include "FatalError.hxx"
+#include "Error.hxx"
#include <assert.h>
#include <sys/signalfd.h>
@@ -29,7 +29,7 @@ void
SignalFD::Create(const sigset_t &mask)
{
if (!fd.CreateSignalFD(&mask))
- FatalSystemError("signalfd() failed");
+ throw MakeErrno("signalfd() failed");
}
int
diff --git a/src/system/SignalFD.hxx b/src/system/SignalFD.hxx
index bf3c40ed6..bc589fa41 100644
--- a/src/system/SignalFD.hxx
+++ b/src/system/SignalFD.hxx
@@ -35,9 +35,10 @@ public:
/**
* Create the signalfd or update its mask.
*
- * All errors are fatal.
+ * Throws on error.
*/
void Create(const sigset_t &mask);
+
void Close() {
fd.Close();
}