diff --git a/general/src/function/daemon.c b/general/src/function/daemon.cpp similarity index 100% rename from general/src/function/daemon.c rename to general/src/function/daemon.cpp diff --git a/general/src/function/daemon.h b/general/src/function/daemon.h index 9119472..0b24123 100644 --- a/general/src/function/daemon.h +++ b/general/src/function/daemon.h @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-07-23 23:40:36 - * @LastEditTime: 2021-07-25 02:31:09 + * @LastEditTime: 2021-07-25 02:42:00 * @LastEditors: Please set LastEditors * @Description: In User Settings Edi * @FilePath: \generallib\general\src\function\daemon.h @@ -21,4 +21,14 @@ extern "C"{ #include #include #include +#include +#include +class DaemonizeMonitor{ +public: + DaemonizeMonitor(string path); + int Start(); + int AddNewProcess(string); +private: + std::vector m_path_process; +}; \ No newline at end of file