From 53db6f005e520d2f7ba3c980dd7684bcda241ca2 Mon Sep 17 00:00:00 2001 From: randomdan Date: Sat, 8 Feb 2014 17:15:43 +0000 Subject: Don't create the app engine instance before forking --- project2/daemon/p2daemonMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project2/daemon/p2daemonMain.cpp b/project2/daemon/p2daemonMain.cpp index 606945d..98dc7ac 100644 --- a/project2/daemon/p2daemonMain.cpp +++ b/project2/daemon/p2daemonMain.cpp @@ -49,10 +49,10 @@ main(int argc, char ** argv) OptionsSource::loadSources([] { return DaemonAppEngine::reqPlatform;} ); //Plugable::onAllComponents(boost::bind(&ComponentLoader::onBefore, _1)); - DaemonAppEngine dae(argc, argv); if (DaemonAppEngine::daemonize) { daemonize(); } + DaemonAppEngine dae(argc, argv); dae.process(); //Plugable::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1)); -- cgit v1.2.3