PidFile: open in write-only mode
This commit is contained in:
parent
5f3b79e21d
commit
9f3ce7551a
@ -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\"",
|
||||
|
Loading…
Reference in New Issue
Block a user