From d3fd89552f9209134c8ba753fb81446910097d54 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Aug 2017 09:37:30 +0200 Subject: [PATCH] unix/Signalhandlers: throw exception instead of raising fatal error --- src/unix/SignalHandlers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/SignalHandlers.cxx b/src/unix/SignalHandlers.cxx index c6dc7ca67..d0908096e 100644 --- a/src/unix/SignalHandlers.cxx +++ b/src/unix/SignalHandlers.cxx @@ -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 @@ -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