remove execution permission on /tmp/drogon.lock (#575)
This commit is contained in:
parent
3222c0df84
commit
c4ff98e620
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue