remove execution permission on /tmp/drogon.lock (#575)

This commit is contained in:
Martin Chang 2020-09-16 00:59:19 +08:00 committed by GitHub
parent 3222c0df84
commit c4ff98e620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class DrogonFileLocker : public trantor::NonCopyable
public:
DrogonFileLocker()
{
fd_ = open("/tmp/drogon.lock", O_TRUNC | O_CREAT, 0755);
fd_ = open("/tmp/drogon.lock", O_TRUNC | O_CREAT, 0666);
flock(fd_, LOCK_EX);
}
~DrogonFileLocker()
@ -269,4 +269,4 @@ std::vector<trantor::InetAddress> ListenerManager::getListeners() const
listeners.emplace_back(server->address());
}
return listeners;
}
}