summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Daemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Daemon/Daemon.cpp')
-rw-r--r--src/Daemon/Daemon.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 3d8df570..d79d90a4 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -41,6 +41,7 @@
#include "CrashWatcher.h"
#include "DebugDump.h"
#include "Daemon.h"
+#include "dumpsocket.h"
using namespace std;
@@ -848,6 +849,9 @@ int main(int argc, char** argv)
throw 1;
pidfile_created = true;
+ /* Open socket to receive new crashes. */
+ dumpsocket_init();
+
/* Note: this already may process a few dbus messages,
* therefore it should be the last thing to initialize.
*/
@@ -899,6 +903,7 @@ int main(int argc, char** argv)
/* Error or INT/TERM. Clean up, in reverse order.
* Take care to not undo things we did not do.
*/
+ dumpsocket_shutdown();
if (pidfile_created)
unlink(VAR_RUN_PIDFILE);
if (lockfile_created)