summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove unused CObserver::Debug methodDenys Vlasenko2009-08-281-5/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify error handling. CrashWatcher.cpp lost a few wrapper functionsDenys Vlasenko2009-08-271-89/+3
| | | | | | -4k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate global variable g_cwDenys Vlasenko2009-08-271-18/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added signal JobStarted => removed the ugly sleep() hackJiri Moskovcak2009-08-271-12/+1
|
* don't encode the job id into message string, send it as an separate argumentJiri Moskovcak2009-08-271-8/+8
|
* add job ids (== thread ids) to warning/update DBus messagesDenys Vlasenko2009-08-261-5/+22
| | | | | | | | renamed: comm_layer_inner_warning -> warn_client comm_layer_inner_status -> update_client Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* further simplify CObserver, CCommLayerServer, and CCrashWatcher classesDenys Vlasenko2009-08-261-36/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make some CrashWatcher member functions static; simplify CObserver classDenys Vlasenko2009-08-261-15/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate AddOpenGPGPublicKey() and AddBlackListedPackage() stubsDenys Vlasenko2009-08-261-12/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* consolidate common data declarations in new file Daemon.hDenys Vlasenko2009-08-261-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more sensible loggingDenys Vlasenko2009-08-251-6/+5
| | | | | | | | | | | comm_layer_inner_debug was jumping through the hoops in order to simply send a message to stderr. this can be made much simpler. also, set logmode to LOGMODE_SYSLOG in abrt daemon, making its log visible if it is daemonized. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate one-use class CDBusServer_adaptorDenys Vlasenko2009-08-251-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pass map_crash_report_t by const reference, not by valueDenys Vlasenko2009-08-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* convert two PluginManager member functions to non-member onesDenys Vlasenko2009-08-241-14/+14
| | | | | | some cleanups for previous commits included too Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplifications by exposing g_pPluginManagerDenys Vlasenko2009-08-241-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* class CMiddleWare no longer exists, it's a set of functions and lone data ↵Denys Vlasenko2009-08-241-17/+17
| | | | | | member now Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* start dismantling singe-instance class MiddleWareDenys Vlasenko2009-08-241-12/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cleanup (m_XXX -> g_XXX renames and the like)Denys Vlasenko2009-08-211-27/+27
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move most of CCrashWatcher's init/deinit into daemon's main()Denys Vlasenko2009-08-211-67/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* at Jirka's request, restore setup where CCrashWatcher has its own source filesDenys Vlasenko2009-08-211-0/+399
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move class CCrashWatcher into daemon.cppDenys Vlasenko2009-08-211-953/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* minimum timeout is 1 secondZdenek Prikryl2009-08-181-1/+1
|
* in case of plugin error, don't delete debug dumpsZdenek Prikryl2009-08-181-2/+5
|
* whitespace cleanup, no code changesDenys Vlasenko2009-08-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* GUI now show the status window after report to let user know how did it go.Jiri Moskovcak2009-08-171-4/+5
|
* added support for storing results from reporters (used from gui)Zdenek Prikryl2009-08-141-1/+1
|
* DBUS: exposed method SetPluginSettingsJiri Moskovcak2009-08-121-0/+16
|
* moved LoadSettings from plugins into PluginManagerZdenek Prikryl2009-08-111-12/+3
|
* DBUS: exposed methods Un/RegisterPluginJiri Moskovcak2009-08-111-0/+32
|
* DBUS: added new method to get plugin settingsJiri Moskovcak2009-08-101-0/+16
|
* fix compile-time warnings.Denys Vlasenko2009-08-091-0/+6
| | | | | | | One fix (in CCrashWatcher::GetPluginsInfo) needs closer look, others are "trivially correct" Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesDenys Vlasenko2009-08-091-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify logging by removing CCommLayerInner classDenys Vlasenko2009-08-071-3/+1
| | | | | | | | It had single use site. The class itself is trivial, it just passed messages down to an CObserver. Now we pass messages directly to an CObserver. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-08-061-0/+1
|\ | | | | | | | | Conflicts: lib/CommLayer/DBusServerProxy.h
| * fix a case when we print a warning twice.Denys Vlasenko2009-08-061-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | DBUS: added method GetPluginsInfo()Jiri Moskovcak2009-08-061-0/+16
|/
* made some functions staticDenys Vlasenko2009-08-041-6/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add error checks on lstat calls; add handling of DT_UNKNOWNDenys Vlasenko2009-08-041-14/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrt-applet: set SIGCHLD to SIG_IGN to prevent zombies from guiDenys Vlasenko2009-08-041-0/+1
| | | | | | | Also, running abrt-gui via popen is definiely wrong. We were leaking a FILE! fixed now. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* DBus: Many fixes to client -> cli works again, changed JobDone notificationJiri Moskovcak2009-08-031-18/+33
|
* using more x-functionsDenys Vlasenko2009-07-311-22/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesDenys Vlasenko2009-07-311-40/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added forgotten "throw" keywordsDenys Vlasenko2009-07-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Daemon: threading fixesJiri Moskovcak2009-07-221-15/+30
|
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-07-201-46/+117
|\
| * rework unsafe handling of SIGINT/SIGTERMDenys Vlasenko2009-07-171-2/+58
| | | | | | | | | | | | | | | | | | | | Signals are asynchronous. It is unsafe to perform such complex operations in a signal handler. I changed signal handler to just set a flag, and added an event source which returns an event when this variable is set. The action is to stop event loop. Execution then falls through to program exit. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * prevent leaking buf in some casesDenys Vlasenko2009-07-171-4/+12
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * simplify CCrashWatcher::CreatePidFileDenys Vlasenko2009-07-171-23/+19
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Restore /proc/sys/kernel/core_pattern on error exit.Denys Vlasenko2009-07-151-28/+39
| | | | | | | | | | | | The bug was observed when dbus-abrt.conf is missing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Daemon: added threaded CreateReport -> breaks CLI!Jiri Moskovcak2009-07-201-39/+70
|/