Fixed issue 504

This commit is contained in:
Nick Bolton 2010-06-05 12:43:34 +00:00
parent 968debbadc
commit a8df07a362
2 changed files with 6 additions and 2 deletions

View File

@ -218,7 +218,7 @@ CArchAppUtilWindows::exitApp(int code)
int daemonNTMainLoopStatic(int argc, const char** argv) int daemonNTMainLoopStatic(int argc, const char** argv)
{ {
return CArchAppUtil::instance().app().daemonMainLoop(argc, argv); return CArchAppUtilWindows::instance().daemonNTMainLoop(argc, argv);
} }
int int

View File

@ -46,7 +46,11 @@ CApp::~CApp()
} }
CApp::CArgsBase::CArgsBase() : CApp::CArgsBase::CArgsBase() :
m_daemon(true), #if SYSAPI_WIN32
m_daemon(false), // daemon mode not supported on windows (use --service)
#else
m_daemon(true), // backward compatibility for unix (daemon by default)
#endif
m_backend(false), m_backend(false),
m_restartable(true), m_restartable(true),
m_noHooks(false), m_noHooks(false),