enable logging for deamon

This commit is contained in:
Dennis Luxen 2013-08-08 16:23:28 +02:00
parent f57519b909
commit 0e2570b204

View File

@ -62,6 +62,7 @@ BOOL WINAPI console_ctrl_handler(DWORD ctrl_type)
#endif
int main (int argc, char * argv[]) {
LogPolicy::GetInstance().Unmute();
#ifdef __linux__
if(!mlockall(MCL_CURRENT | MCL_FUTURE))
SimpleLogger().Write(logWARNING) << "Process " << argv[0] << "could not be locked to RAM";