diff sources/engine.cpp @ 7:8d54d9fdeca3

fixed comments removed daemonization verbose strings' size() -> length()
author Vlad Glagolev <enqlave@gmail.com>
date Sun, 03 Feb 2008 21:29:41 +0300
parents 0faceb076254
children
line wrap: on
line diff
--- a/sources/engine.cpp	Sun Jan 27 17:23:14 2008 +0300
+++ b/sources/engine.cpp	Sun Feb 03 21:29:41 2008 +0300
@@ -1,5 +1,4 @@
-/**
- * engine.cpp (2007-03-05)
+/** engine.cpp (2007-03-05)
  *
  * -- CABAL -- engine (useful functions)
  *
@@ -19,7 +18,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "engine.hpp"
+#include "cabal.hpp" // needed: engine.hpp
 
 bool daemonize()
 {
@@ -27,7 +26,8 @@
 		cout << "Error: unable to daemonize into background\n";
 		exit(1);
 	} else {
-		cout << "ENGINE: successfully daemonized into background\n";
+		if (CABAL->debug)
+			cout << "ENGINE: successfully daemonized into background\n";
 		return daemon(1, 1) == 0;
 	}
 }