Fixed daemonizing bug

This commit is contained in:
ozzay 2014-08-18 13:09:49 +02:00
parent 3d9f603c4b
commit f22c229aea

View file

@ -250,7 +250,7 @@ int main(int argc, char ** argv){
}//connected to a terminal }//connected to a terminal
Controller::Log("CONF", "Controller started"); Controller::Log("CONF", "Controller started");
Controller::conf.is_active = true;//set this to true here already so the below threads don't instantly exit Controller::conf.activate();//activate early, so threads aren't killed.
//start stats thread //start stats thread
tthread::thread statsThread(Controller::SharedMemStats, &Controller::conf); tthread::thread statsThread(Controller::SharedMemStats, &Controller::conf);