diff options
author | Max Kellermann <max@duempel.org> | 2013-08-07 09:35:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-07 10:08:36 +0200 |
commit | a27d105dcd1376c1df4ff16e388dfcfa3b355cc6 (patch) | |
tree | 6903bc549cc57250bea724bf800a3f7e6812841e /src/SignalHandlers.cxx | |
parent | 67e44b0f2c76a8c4913048fe3b8fe90116fa595b (diff) | |
download | mpd-a27d105dcd1376c1df4ff16e388dfcfa3b355cc6.tar.gz mpd-a27d105dcd1376c1df4ff16e388dfcfa3b355cc6.tar.xz mpd-a27d105dcd1376c1df4ff16e388dfcfa3b355cc6.zip |
FatalError: new library to replace mpd_error.h
Diffstat (limited to 'src/SignalHandlers.cxx')
-rw-r--r-- | src/SignalHandlers.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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 <glib.h> #include <signal.h> -#include <errno.h> -#include <string.h> 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 |