From 9f3ce7551a481f757feeb6837961f565a686c945 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 12:42:12 +0100 Subject: [PATCH] PidFile: open in write-only mode --- src/PidFile.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PidFile.hxx b/src/PidFile.hxx index cd9c38d43..c06ed6b61 100644 --- a/src/PidFile.hxx +++ b/src/PidFile.hxx @@ -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\"",