diff sources/engine.cpp @ 5:0faceb076254

code clean up added PID to the default Core argument bool => true|false
author Vlad Glagolev <enqlave@gmail.com>
date Thu, 24 Jan 2008 21:00:52 +0300
parents a7051ac7118b
children 8d54d9fdeca3
line wrap: on
line diff
--- a/sources/engine.cpp	Thu Jan 24 19:38:34 2008 +0300
+++ b/sources/engine.cpp	Thu Jan 24 21:00:52 2008 +0300
@@ -23,19 +23,19 @@
 
 bool daemonize()
 {
-	if (daemon (1, 1) != 0) {
+	if (daemon(1, 1) != 0) {
 		cout << "Error: unable to daemonize into background\n";
-		exit (1);
+		exit(1);
 	} else {
 		cout << "ENGINE: successfully daemonized into background\n";
-		return daemon (1, 1) == 0;
+		return daemon(1, 1) == 0;
 	}
 }
 
 time_t gettime()
 {
 	time_t t;
-	return time (&t);
+	return time(&t);
 }
 
 string getCountry(string c)