diff --git a/source/util/LockFileUtils.h b/source/util/LockFileUtils.h index 7be38a059..cc7b2e0c6 100644 --- a/source/util/LockFileUtils.h +++ b/source/util/LockFileUtils.h @@ -19,29 +19,30 @@ namespace Aws */ class LockFileUtils { - private: - static constexpr char TAG[] = "LockFileUtils.cpp"; - static constexpr char FILE_NAME[] = "/var/run/devicecl.lock"; - static constexpr char PROCESS_NAME[] = "aws-iot-device-client"; + private: + static constexpr char TAG[] = "LockFileUtils.cpp"; + static constexpr char FILE_NAME[] = "/var/run/devicecl.lock"; + static constexpr char PROCESS_NAME[] = "aws-iot-device-client"; - /** - * \brief Gives the current process exclusive write access and writes the pid into the lock file - * @param pid - */ - static void WriteToLockFile(const std::string &pid); + /** + * \brief Gives the current process exclusive write access and writes the pid into the lock file + * @param pid + */ + static void WriteToLockFile(const std::string &pid); - public: - /** - * \brief Creates a lock file in the default directory if it does not exist, aborts execution if another process is running. - * @return 0 upon success - */ - static int ProcessLock(); + public: + /** + * \brief Creates a lock file in the default directory if it does not exist, aborts execution if + * another process is running. + * @return 0 upon success + */ + static int ProcessLock(); - /** - * \brief Deletes the lock file when device client shuts down - * @return 0 upon success - */ - static int ProcessUnlock(); + /** + * \brief Deletes the lock file when device client shuts down + * @return 0 upon success + */ + static int ProcessUnlock(); }; } // namespace Util } // namespace DeviceClient