Fixed daemonizing bug
This commit is contained in:
parent
3d9f603c4b
commit
f22c229aea
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue