|
|
|
@ -30,11 +30,11 @@ class CDaemon
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
static DAEMONIZE_RESULT daemonize(const std::string& pidFile, const std::string& user);
|
|
|
|
static DAEMONIZE_RESULT daemonize(const std::string& pidFile, const std::string& user);
|
|
|
|
static void finalize();
|
|
|
|
static void finalise();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static int tryGetLock(const std::string& file );
|
|
|
|
static int tryGetLock(const std::string& file);
|
|
|
|
static void releaseLock(int fd, const std::string& file );
|
|
|
|
static void releaseLock(int fd, const std::string& file);
|
|
|
|
|
|
|
|
|
|
|
|
static int m_pid_fd;
|
|
|
|
static int m_pid_fd;
|
|
|
|
static std::string m_pidFileName;
|
|
|
|
static std::string m_pidFileName;
|
|
|
|
|