From 626938e2d237a00e2ecacd92f94435360d8399c3 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 23 Feb 2009 16:46:54 +0100 Subject: Better signal handling in daemon --- src/Daemon/CrashWatcher.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/Daemon/CrashWatcher.cpp') 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 #include -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() { -- cgit