summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.h
Commit message (Collapse)AuthorAgeFilesLines
* lower-case devel headersNikola Pajkovsky2010-07-091-1/+1
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* remove socket code, it is deadDenys Vlasenko2010-03-231-5/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: UID:UUID -> crash_id conversionDenys Vlasenko2010-03-041-6/+6
| | | | | | | | | | | | | | | | | | | This fixes at least three instances where we did not check whether user is even allowed to report or delete a crash. Also fixes a few cases when root might inadvertently act on (e.g. delete) mote than one crash. Renamed FILENAME_UID to CD_UID - makes more sense this way. Added COL_INFORMALL and CD_INFORMALL. Nuked UID == -1 hacks. Renamed getReport() to start_job on Python side. Dropped a few unused parameters from server -> client dbus signals. Fixed CLI's way of reverencing crashes (see updated help text). Run-tested (GUI and CLI). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-by: Nikola Pajkovsky <npajkovs@redhat.com>
* *: remove all usages of C++ streams (-10k in code size)Denys Vlasenko2010-02-071-2/+1
| | | | | | Also add copyright banners to all files which were missing them Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: fix Report() dbus call gaping security holesDenys Vlasenko2010-01-211-1/+1
| | | | | | We were blindly trusting the values passed to us Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unify "crash data, "crash info" and "crash report" data types. they are the sameDenys Vlasenko2010-01-191-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make "abrt-cli --delete randomuuid" report that deletion failed. closes bug 59Denys Vlasenko2009-12-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify code which deletes corrupted debug dumps; kill unused EXCEP_FATALDenys Vlasenko2009-12-041-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename CreateReport -> StartJob, GetJobResult -> CreateReportDenys Vlasenko2009-12-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hopefully fix rhbz#541854: when we trim the dir, we must delete it from DB tooDenys Vlasenko2009-12-031-1/+2
| | | | | | Also added a more robust code to resis SEGVing if directory doesn't exist. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass replace of const string& params by const char*Denys Vlasenko2009-11-061-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add "force" param to CreateReport dbus call. If !0, regenerates backtraceDenys Vlasenko2009-10-091-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make Warning, Error and Update send unicast dbus messagesDenys Vlasenko2009-09-081-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: eliminate g_pending_jobs[] map and all corresponding TODOs :)Denys Vlasenko2009-09-081-2/+2
| | | | | | | | | | -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>
* correct g_pending_jobs' type; eliminate redundant string passingDenys Vlasenko2009-09-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove unused CObserver::Debug methodDenys Vlasenko2009-08-281-7/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify error handling. CrashWatcher.cpp lost a few wrapper functionsDenys Vlasenko2009-08-271-7/+0
| | | | | | -4k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* don't encode the job id into message string, send it as an separate argumentJiri Moskovcak2009-08-271-2/+2
|
* add job ids (== thread ids) to warning/update DBus messagesDenys Vlasenko2009-08-261-1/+1
| | | | | | | | 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-23/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make some CrashWatcher member functions static; simplify CObserver classDenys Vlasenko2009-08-261-9/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* consolidate common data declarations in new file Daemon.hDenys Vlasenko2009-08-261-14/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more sensible loggingDenys Vlasenko2009-08-251-1/+1
| | | | | | | | | | | 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>
* remove CreateReport() method from server machinery; add comments about DBusDenys Vlasenko2009-08-251-9/+0
| | | | 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>
* class CMiddleWare no longer exists, it's a set of functions and lone data ↵Denys Vlasenko2009-08-241-2/+0
| | | | | | member now Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* start dismantling singe-instance class MiddleWareDenys Vlasenko2009-08-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cleanup (m_XXX -> g_XXX renames and the like)Denys Vlasenko2009-08-211-12/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move most of CCrashWatcher's init/deinit into daemon's main()Denys Vlasenko2009-08-211-27/+8
| | | | 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/+120
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move class CCrashWatcher into daemon.cppDenys Vlasenko2009-08-211-146/+0
| | | | 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-1/+1
|
* DBUS: exposed method SetPluginSettingsJiri Moskovcak2009-08-121-0/+1
|
* moved LoadSettings from plugins into PluginManagerZdenek Prikryl2009-08-111-1/+1
|
* DBUS: exposed methods Un/RegisterPluginJiri Moskovcak2009-08-111-0/+3
|
* DBUS: added new method to get plugin settingsJiri Moskovcak2009-08-101-0/+1
|
* simplify logging by removing CCommLayerInner classDenys Vlasenko2009-08-071-1/+0
| | | | | | | | 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>
* preparatory cleanupsDenys Vlasenko2009-08-071-9/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-08-061-2/+2
|\ | | | | | | | | Conflicts: lib/CommLayer/DBusServerProxy.h
| * trailing whitespace removal. no code changesDenys Vlasenko2009-08-061-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | DBUS: added method GetPluginsInfo()Jiri Moskovcak2009-08-061-0/+1
|/
* made some functions staticDenys Vlasenko2009-08-041-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* DBus: Many fixes to client -> cli works again, changed JobDone notificationJiri Moskovcak2009-08-031-6/+14
|
* Daemon: threading fixesJiri Moskovcak2009-07-221-1/+2
|
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-07-201-2/+3
|\
| * rework unsafe handling of SIGINT/SIGTERMDenys Vlasenko2009-07-171-2/+3
| | | | | | | | | | | | | | | | | | | | 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>
* | Daemon: added threaded CreateReport -> breaks CLI!Jiri Moskovcak2009-07-201-2/+16
|/
* proper way how to daemonizeZdenek Prikryl2009-06-241-3/+0
|
* Added pidfile support in daemon (C hook should work now)Jiri Moskovcak2009-06-231-0/+2
|