diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-23 16:46:54 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-23 16:46:54 +0100 |
| commit | 626938e2d237a00e2ecacd92f94435360d8399c3 (patch) | |
| tree | 38b53194bba4732bd656bfa1131ed9c6188d094e /src/Daemon/CrashWatcher.cpp | |
| parent | d740acb4e7c11eaf5deb94b35f33f0bfb7ee99be (diff) | |
| download | abrt-626938e2d237a00e2ecacd92f94435360d8399c3.tar.gz abrt-626938e2d237a00e2ecacd92f94435360d8399c3.tar.xz abrt-626938e2d237a00e2ecacd92f94435360d8399c3.zip | |
Better signal handling in daemon
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
| -rw-r--r-- | src/Daemon/CrashWatcher.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index d0b6923..f1b6828 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -29,10 +29,6 @@ #include <csignal> #include <sstream> -void terminate(int signal) -{ - exit(0); -} /* just a helper function */ template< class T > std::string @@ -129,7 +125,6 @@ dbus_vector_map_crash_infos_t CCrashWatcher::GetCrashInfosMap(const std::string { dbus_vector_map_crash_infos_t retval; vector_crash_infos_t crash_info; - std::cerr << pUID << std::endl; unsigned long unix_uid = m_pConn->sender_unix_uid(pUID.c_str()); crash_info = m_pMW->GetCrashInfos(to_string(unix_uid)); for (vector_crash_infos_t::iterator it = crash_info.begin(); it!=crash_info.end(); ++it) { @@ -190,10 +185,6 @@ void CCrashWatcher::GStartWatch() delete[] buff; } -void CCrashWatcher::RegisterSignals() -{ - signal(SIGTERM, terminate); -} void CCrashWatcher::Daemonize() { |
