PidFile: open in write-only mode

This commit is contained in:
Max Kellermann 2014-01-18 12:42:12 +01:00
parent 5f3b79e21d
commit 9f3ce7551a

View File

@ -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\"",