From d55a8ebe98226c1d592284477fdc9176f92b647e Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 30 Dec 2011 20:56:58 +0000 Subject: [PATCH] Start daemon mode only in non-debug server. --- src/pokerth_server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pokerth_server.cpp b/src/pokerth_server.cpp index f090f7ab..5715d9f7 100644 --- a/src/pokerth_server.cpp +++ b/src/pokerth_server.cpp @@ -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);