summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
Commit message (Collapse)AuthorAgeFilesLines
* *: 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-7/+6
| | | | | | We were blindly trusting the values passed to us Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* split load_crash_data_from_debug_dump from DebugDumpToCrashReportDenys Vlasenko2010-01-201-2/+1
| | | | | | We will need it elsewhere later 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-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: misc fixesDenys Vlasenko2010-01-111-7/+5
| | | | 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/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove most of remaining const string& paramsDenys Vlasenko2009-12-071-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* small fix on top of DeleteDebugDump changeDenys Vlasenko2009-12-041-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify code which deletes corrupted debug dumps; kill unused EXCEP_FATALDenys Vlasenko2009-12-041-36/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename CreateReport -> StartJob, GetJobResult -> CreateReportDenys Vlasenko2009-12-031-9/+6
| | | | 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-5/+24
| | | | | | Also added a more robust code to resis SEGVing if directory doesn't exist. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hookCCpp: check total dump dir size and delete the largest/oldest oneDenys Vlasenko2009-11-261-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* continuing s/std::string&/char*/gDenys Vlasenko2009-11-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify logging a bit. warn_client() is gone, reuse error_msg() for it.Denys Vlasenko2009-11-061-15/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass replace of const string& params by const char*Denys Vlasenko2009-11-061-13/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* implement abrtd -t TIMEOUT_IN_SECDenys Vlasenko2009-10-311-14/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* removed JobStarted signal; fixed a small bug in build-id scanning codeDenys Vlasenko2009-10-091-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add "force" param to CreateReport dbus call. If !0, regenerates backtraceDenys Vlasenko2009-10-091-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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
|