Commit 9f3ce755 authored by Max Kellermann's avatar Max Kellermann

PidFile: open in write-only mode

parent 5f3b79e2
......@@ -37,7 +37,7 @@ public:
if (path.IsNull())
return;
file = FOpen(path, "w+");
file = FOpen(path, "w");
if (file == nullptr) {
const std::string utf8 = path.ToUTF8();
FormatFatalSystemError("Failed to create pid file \"%s\"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment