From a27d105dcd1376c1df4ff16e388dfcfa3b355cc6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 09:35:30 +0200 Subject: FatalError: new library to replace mpd_error.h --- src/SignalHandlers.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/SignalHandlers.cxx') diff --git a/src/SignalHandlers.cxx b/src/SignalHandlers.cxx index d671dc408..36408dc78 100644 --- a/src/SignalHandlers.cxx +++ b/src/SignalHandlers.cxx @@ -26,13 +26,11 @@ #include "Main.hxx" #include "event/Loop.hxx" #include "GlobalEvents.hxx" -#include "mpd_error.h" +#include "FatalError.hxx" #include #include -#include -#include static void exit_signal_handler(gcc_unused int signum) { @@ -48,7 +46,7 @@ static void x_sigaction(int signum, const struct sigaction *act) { if (sigaction(signum, act, NULL) < 0) - MPD_ERROR("sigaction() failed: %s", strerror(errno)); + FatalSystemError("sigaction() failed"); } static void -- cgit v1.2.3