summaryrefslogtreecommitdiff
path: root/lib/server/Daemon.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-08-07 16:30:40 +0000
committerChris Wilson <chris+github@qwirx.com>2008-08-07 16:30:40 +0000
commit293b29f88b47236538d63bc3a54d01322b7798b8 (patch)
tree7c90386c73f56e74fa5b1c347bc167bff5de13ac /lib/server/Daemon.h
parentb7cf8523cee861d02cd369f55567d88253f92eb1 (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.h4
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();