Start daemon mode only in non-debug server.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user