diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-04-28 17:32:24 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-04-28 17:32:24 +0000 |
commit | 503d68413c525aa84430c9e6c6b27eee1eaefbe4 (patch) | |
tree | a9e262413394c44bd55416da47f84a9e8aae30c9 /lib/server/Daemon.h | |
parent | 41b16f3b27f87d2f84e59387e78644c05756e307 (diff) |
Make Daemon remember whether we're supposed to run in a single process,
or not. (refs #3)
Diffstat (limited to 'lib/server/Daemon.h')
-rw-r--r-- | lib/server/Daemon.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/server/Daemon.h b/lib/server/Daemon.h index 52bab257..2ce24cfe 100644 --- a/lib/server/Daemon.h +++ b/lib/server/Daemon.h @@ -41,7 +41,8 @@ private: public: int Main(const char *DefaultConfigFile, int argc, const char *argv[]); - int Main(const std::string &rConfigFile, bool singleProcess); + // int Main(const std::string &rConfigFile, bool singleProcess); + int Main(const std::string &rConfigFile); virtual void Run(); const Configuration &GetConfiguration() const; @@ -66,6 +67,7 @@ public: protected: box_time_t GetLoadedConfigModifiedTime() const; + bool IsSingleProcess() { return mSingleProcess; } private: static void SignalHandler(int sigraised); @@ -77,6 +79,7 @@ private: box_time_t mLoadedConfigModifiedTime; bool mReloadConfigWanted; bool mTerminateWanted; + bool mSingleProcess; bool mKeepConsoleOpenAfterFork; static Daemon *spDaemon; }; |