diff --git a/lib/src/ListenerManager.cc b/lib/src/ListenerManager.cc index 837da953..4b52079c 100644 --- a/lib/src/ListenerManager.cc +++ b/lib/src/ListenerManager.cc @@ -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 ListenerManager::getListeners() const listeners.emplace_back(server->address()); } return listeners; -} \ No newline at end of file +}