diff options
author | randomdan <randomdan@localhost> | 2014-02-08 17:15:43 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-02-08 17:15:43 +0000 |
commit | 53db6f005e520d2f7ba3c980dd7684bcda241ca2 (patch) | |
tree | dea3173e593c7a18e9e33fdd6f783898fd9a112e | |
parent | Improvements to popenrw and add popenrwe for the stderr pipe too (diff) | |
download | project2-53db6f005e520d2f7ba3c980dd7684bcda241ca2.tar.bz2 project2-53db6f005e520d2f7ba3c980dd7684bcda241ca2.tar.xz project2-53db6f005e520d2f7ba3c980dd7684bcda241ca2.zip |
Don't create the app engine instance before forking
-rw-r--r-- | project2/daemon/p2daemonMain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |