[Box Backup-commit] COMMIT r2223 - box/trunk/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Aug 7 17:30:40 BST 2008


Author: chris
Date: 2008-08-07 17:30:40 +0100 (Thu, 07 Aug 2008)
New Revision: 2223

Modified:
   box/trunk/lib/server/Daemon.h
Log:
Allow externally controllic whether a daemon will run in the foreground
or not, will need this for running tests with internal bbstored.


Modified: box/trunk/lib/server/Daemon.h
===================================================================
--- box/trunk/lib/server/Daemon.h	2008-08-07 13:47:59 UTC (rev 2222)
+++ box/trunk/lib/server/Daemon.h	2008-08-07 16:30:40 UTC (rev 2223)
@@ -68,6 +68,10 @@
 	virtual void EnterChild();
 	
 	static void SetProcessTitle(const char *format, ...);
+	void SetRunInForeground(bool foreground)
+	{
+		mRunInForeground = foreground;
+	}
 
 protected:
 	virtual void SetupInInitialProcess();




More information about the Boxbackup-commit mailing list