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