summaryrefslogtreecommitdiff
path: root/src/Log.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-07 09:35:30 +0200
committerMax Kellermann <max@duempel.org>2013-08-07 10:08:36 +0200
commita27d105dcd1376c1df4ff16e388dfcfa3b355cc6 (patch)
tree6903bc549cc57250bea724bf800a3f7e6812841e /src/Log.cxx
parent67e44b0f2c76a8c4913048fe3b8fe90116fa595b (diff)
FatalError: new library to replace mpd_error.h
Diffstat (limited to 'src/Log.cxx')
-rw-r--r--src/Log.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Log.cxx b/src/Log.cxx
index 96ac106cc..37bff9c78 100644
--- a/src/Log.cxx
+++ b/src/Log.cxx
@@ -21,6 +21,7 @@
#include "Log.hxx"
#include "conf.h"
#include "fd_util.h"
+#include "FatalError.hxx"
#include "mpd_error.h"
#include <assert.h>
@@ -60,9 +61,9 @@ static void redirect_logs(int fd)
{
assert(fd >= 0);
if (dup2(fd, STDOUT_FILENO) < 0)
- MPD_ERROR("problems dup2 stdout : %s\n", strerror(errno));
+ FatalSystemError("Failed to dup2 stdout");
if (dup2(fd, STDERR_FILENO) < 0)
- MPD_ERROR("problems dup2 stderr : %s\n", strerror(errno));
+ FatalSystemError("Failed to dup2 stderr");
}
static const char *log_date(void)