summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove a few C++-isms where they did not buy any convenience anywayDenys Vlasenko2009-09-181-2/+0
| | | | | | | | | | | | text data bss dec hex filename 182372 2624 2320 187316 2dbb4 abrt.t2/abrt-0.0.8.5/src/Daemon/.libs/abrtd 180635 2584 1968 185187 2d363 abrt.t3/abrt-0.0.8.5/src/Daemon/.libs/abrtd 34110 1340 768 36218 8d7a abrt.t2/abrt-0.0.8.5/src/CLI/.libs/abrt-cli 30202 1292 224 31718 7be6 abrt.t3/abrt-0.0.8.5/src/CLI/.libs/abrt-cli 22116 1688 376 24180 5e74 abrt.t2/abrt-0.0.8.5/src/Applet/.libs/abrt-applet 21254 1648 88 22990 59ce abrt.t3/abrt-0.0.8.5/src/Applet/.libs/abrt-applet Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixDenys Vlasenko2009-09-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make Warning, Error and Update send unicast dbus messagesDenys Vlasenko2009-09-081-14/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, trivial code changes onlyDenys Vlasenko2009-09-081-3/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: eliminate g_pending_jobs[] map and all corresponding TODOs :)Denys Vlasenko2009-09-081-44/+56
| | | | | | | | | | -6k: text data bss dec hexfilename 194741 2656 2384 199781 30c65abrt.t1/abrt-0.0.8.5/src/Daemon/.libs/abrtd 188316 2648 2320 193284 2f304abrt.t2/abrt-0.0.8.5/src/Daemon/.libs/abrtd Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preparatory work for proper (i.e. unicast) server->client dbus communicationDenys Vlasenko2009-09-071-1/+2
| | | | | | | | + /* send unicast dbus signal */ + if (!dbus_message_set_destination(msg, pDest)) + die_out_of_memory(); Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* correct g_pending_jobs' type; eliminate redundant string passingDenys Vlasenko2009-09-071-14/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>