From 3c7b85d8355c64dec5b4ce011753196d53774103 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Jan 2025 10:36:20 +0100 Subject: Added PIDFile --- PIDFile.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 PIDFile.h (limited to 'PIDFile.h') diff --git a/PIDFile.h b/PIDFile.h new file mode 100644 index 0000000..3278b0e --- /dev/null +++ b/PIDFile.h @@ -0,0 +1,19 @@ +#pragma once + +#include +#include + +class PIDFile +{ +public: + PIDFile(const std::string& programname); + ~PIDFile(); + +private: + int get_pid_from_file() const; + + std::filesystem::path get_filename() const; + + std::string m_programname; +}; + -- cgit v1.2.3