Start daemon mode only in non-debug server.

This commit is contained in:
lotodore
2011-12-30 20:56:58 +00:00
parent 72cf399ec9
commit d55a8ebe98
+2
View File
@@ -125,10 +125,12 @@ main(int argc, char *argv[])
// TODO: Hack
#ifndef _WIN32
#ifdef QT_NO_DEBUG
if (daemon(0, 0) != 0) {
cout << "Failed to start daemon." << endl;
return 1;
}
#endif
#endif
signal(SIGTERM, TerminateHandler);