From 293b29f88b47236538d63bc3a54d01322b7798b8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 7 Aug 2008 16:30:40 +0000 Subject: Allow externally controllic whether a daemon will run in the foreground or not, will need this for running tests with internal bbstored. --- lib/server/Daemon.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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(); -- cgit v1.2.3