diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-07 16:30:40 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-07 16:30:40 +0000 |
commit | 293b29f88b47236538d63bc3a54d01322b7798b8 (patch) | |
tree | 7c90386c73f56e74fa5b1c347bc167bff5de13ac /lib/server/Daemon.h | |
parent | b7cf8523cee861d02cd369f55567d88253f92eb1 (diff) |
Allow externally controllic whether a daemon will run in the foreground
or not, will need this for running tests with internal bbstored.
Diffstat (limited to 'lib/server/Daemon.h')
-rw-r--r-- | lib/server/Daemon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/server/Daemon.h b/lib/server/Daemon.h index 3f4b3086..e399a0ef 100644 --- a/lib/server/Daemon.h +++ b/lib/server/Daemon.h @@ -68,6 +68,10 @@ public: virtual void EnterChild(); static void SetProcessTitle(const char *format, ...); + void SetRunInForeground(bool foreground) + { + mRunInForeground = foreground; + } protected: virtual void SetupInInitialProcess(); |