diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-01 09:36:46 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-01 09:36:46 +0200 |
| commit | 42657326fdf8db194013094537d9386830fe5876 (patch) | |
| tree | a81cde5aa03cc72950987c4eaa29d0461696a3d4 /src/Daemon/Daemon.cpp | |
| parent | d879ebf08c48bbe8ed9bd344fceee9163fe464da (diff) | |
| download | abrt-42657326fdf8db194013094537d9386830fe5876.tar.gz abrt-42657326fdf8db194013094537d9386830fe5876.tar.xz abrt-42657326fdf8db194013094537d9386830fe5876.zip | |
Added commlayer to make dbus optional
Diffstat (limited to 'src/Daemon/Daemon.cpp')
| -rw-r--r-- | src/Daemon/Daemon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index b5d6cbe..1eca300 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -28,7 +28,7 @@ void terminate(int signal) { fprintf(stderr, "Got SIGINT/SIGTERM, cleaning up..\n"); delete ccdaemon; - delete dispatcher; + //delete dispatcher; exit(0); } @@ -37,15 +37,15 @@ int main(int argc, char** argv){ /*signal handlers */ signal(SIGTERM, terminate); signal(SIGINT, terminate); - /* connect to dbus */ + /* connect to dbus //DBus::Glib::BusDispatcher *dispatcher; dispatcher = new DBus::Glib::BusDispatcher(); dispatcher->attach(NULL); DBus::default_dispatcher = dispatcher; DBus::Connection conn = DBus::Connection::SystemBus(); - + */ try{ - ccdaemon = new CCrashWatcher(DEBUG_DUMPS_DIR, conn); + ccdaemon = new CCrashWatcher(DEBUG_DUMPS_DIR); if (argc > 1){ if (strcmp(argv[1], "-d") == 0){ daemonize = 0; |
