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 | c20c2e2601ed37fc7ec8880c15b805fd25cd1cbf (patch) | |
tree | dea3173e593c7a18e9e33fdd6f783898fd9a112e | |
parent | Improvements to popenrw and add popenrwe for the stderr pipe too (diff) | |
download | project2-c20c2e2601ed37fc7ec8880c15b805fd25cd1cbf.tar.bz2 project2-c20c2e2601ed37fc7ec8880c15b805fd25cd1cbf.tar.xz project2-c20c2e2601ed37fc7ec8880c15b805fd25cd1cbf.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)); |