aboutsummaryrefslogtreecommitdiffstats
path: root/src/unix/Daemon.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unix/Daemon.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/Daemon.cxx b/src/unix/Daemon.cxx
index 3787244d7..c3638cc80 100644
--- a/src/unix/Daemon.cxx
+++ b/src/unix/Daemon.cxx
@@ -71,7 +71,7 @@ daemonize_kill(void)
if (pidfile.IsNull())
FatalError("no pid_file specified in the config file");
- fp = FOpen(pidfile, "r");
+ fp = FOpen(pidfile, PATH_LITERAL("r"));
if (fp == nullptr) {
const std::string utf8 = pidfile.ToUTF8();
FormatFatalSystemError("Unable to open pid file \"%s\"",