diff options
| author | karel <karel@localhost.localdomain> | 2010-05-14 17:13:53 +0200 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2010-06-09 17:18:47 +0200 |
| commit | 50b676e4e3ffda79665712d4522887fdb2f2ba06 (patch) | |
| tree | b59220a7443dd73e8726de57028efe7ebc59de4f /src/Daemon/Daemon.cpp | |
| parent | a28c9745990dbbf1454b449d454142f5603fa25e (diff) | |
| download | abrt-50b676e4e3ffda79665712d4522887fdb2f2ba06.tar.gz abrt-50b676e4e3ffda79665712d4522887fdb2f2ba06.tar.xz abrt-50b676e4e3ffda79665712d4522887fdb2f2ba06.zip | |
Daemon socket for reporting crashes
Diffstat (limited to 'src/Daemon/Daemon.cpp')
| -rw-r--r-- | src/Daemon/Daemon.cpp | 5 |
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) |
