diff options
author | randomdan <randomdan@localhost> | 2013-09-07 13:54:54 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-09-07 13:54:54 +0000 |
commit | 351984640ce700a273cf317344e5ef32786985ef (patch) | |
tree | 52e7ee7d296220911d63423b7634961af3a3d522 | |
parent | Add signal handler to p2daemon (diff) | |
download | project2-351984640ce700a273cf317344e5ef32786985ef.tar.bz2 project2-351984640ce700a273cf317344e5ef32786985ef.tar.xz project2-351984640ce700a273cf317344e5ef32786985ef.zip |
Explicit daemon destruction in order
Client linking fix
-rw-r--r-- | project2/daemon/lib/Jamfile.jam | 1 | ||||
-rw-r--r-- | project2/daemon/p2daemonAppEngine.cpp | 5 | ||||
-rw-r--r-- | project2/daemon/p2daemonAppEngine.h | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/project2/daemon/lib/Jamfile.jam b/project2/daemon/lib/Jamfile.jam index e028f19..c46ff32 100644 --- a/project2/daemon/lib/Jamfile.jam +++ b/project2/daemon/lib/Jamfile.jam @@ -10,6 +10,7 @@ lib p2daemonlib : <library>../../common//p2common : : <include>. + <library>../../common//p2common ; diff --git a/project2/daemon/p2daemonAppEngine.cpp b/project2/daemon/p2daemonAppEngine.cpp index d00cd1d..cb414c5 100644 --- a/project2/daemon/p2daemonAppEngine.cpp +++ b/project2/daemon/p2daemonAppEngine.cpp @@ -19,6 +19,11 @@ DaemonAppEngine::DaemonAppEngine(int argc, char ** argv) : daemon = DaemonLoader::createNew(daemonType, argc, argv); } +DaemonAppEngine::~DaemonAppEngine() +{ + daemon.reset(); +} + void DaemonAppEngine::shutdown(int) { diff --git a/project2/daemon/p2daemonAppEngine.h b/project2/daemon/p2daemonAppEngine.h index 48ef572..236bef6 100644 --- a/project2/daemon/p2daemonAppEngine.h +++ b/project2/daemon/p2daemonAppEngine.h @@ -8,7 +8,7 @@ class DaemonAppEngine { public: DaemonAppEngine(int, char **); - ~DaemonAppEngine() = default; + ~DaemonAppEngine(); void process() const; |