Commit d3fd8955 authored by Max Kellermann's avatar Max Kellermann

unix/Signalhandlers: throw exception instead of raising fatal error

parent 6d43e70a
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "Log.hxx" #include "Log.hxx"
#include "LogInit.hxx" #include "LogInit.hxx"
#include "event/Loop.hxx" #include "event/Loop.hxx"
#include "system/FatalError.hxx" #include "system/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include <signal.h> #include <signal.h>
...@@ -44,7 +44,7 @@ static void ...@@ -44,7 +44,7 @@ static void
x_sigaction(int signum, const struct sigaction *act) x_sigaction(int signum, const struct sigaction *act)
{ {
if (sigaction(signum, act, NULL) < 0) if (sigaction(signum, act, NULL) < 0)
FatalSystemError("sigaction() failed"); throw MakeErrno("sigaction() failed");
} }
static void static void
......
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