diff options
author | Max Kellermann <max@musicpd.org> | 2017-08-11 09:37:30 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-11 09:37:30 +0200 |
commit | d3fd89552f9209134c8ba753fb81446910097d54 (patch) | |
tree | 8ea70b949a05a5209e4897190c8cfebf0e6b03a8 /src | |
parent | 6d43e70a9393d86fb75984fa33815e5d8ab0347f (diff) |
unix/Signalhandlers: throw exception instead of raising fatal error
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/SignalHandlers.cxx | 4 |
1 files 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 <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 |