summaryrefslogtreecommitdiffstats
path: root/src/Daemon
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed getting plugin's settingsZdenek Prikryl2009-08-141-5/+4
|
* .abrt directory in $HOME is created if it doesn't existZdenek Prikryl2009-08-141-2/+31
|
* created conf file has uid,gid of an userZdenek Prikryl2009-08-141-1/+9
|
* Make Python and Bugzilla plugins to be enabled by default.Jiri Moskovcak2009-08-121-2/+3
|
* DBUS: exposed method SetPluginSettingsJiri Moskovcak2009-08-122-0/+17
|
* added comment charZdenek Prikryl2009-08-111-1/+1
|
* removed debug printsZdenek Prikryl2009-08-111-2/+0
|
* moved LoadSettings from plugins into PluginManagerZdenek Prikryl2009-08-116-51/+186
|
* DBUS: exposed methods Un/RegisterPluginJiri Moskovcak2009-08-112-0/+35
|
* DBUS: added new method to get plugin settingsJiri Moskovcak2009-08-102-0/+17
|
* fix compile-time warnings.Denys Vlasenko2009-08-093-4/+11
| | | | | | | 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-092-6/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* replace string memebers of plugin_info_t with const char*Denys Vlasenko2009-08-072-62/+66
| | | | | | | | | | Since they are constant, and we never ever want to change them, there is no benefit in having them as strings. This change removes one global data object's constructor and destructor from every applet .so module. 6k less code. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify logging by removing CCommLayerInner classDenys Vlasenko2009-08-072-4/+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>
* preparatory cleanupsDenys Vlasenko2009-08-071-9/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Split real code from lib/MiddleWare/Plugin.h into Plugin.cpp.Denys Vlasenko2009-08-071-1/+1
| | | | | | 30k smaller code. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bug 54: make abrt (without -d) report initialization errorsDenys Vlasenko2009-08-061-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example (strace): 10053 17:18:58.384259 close(0) = 0 10053 17:18:58.384293 open("/dev/null", O_RDWR) = 0 child is created: 10053 17:18:58.384354 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f50eea1c880) = 10054 parent sleeps, child initializes: 10053 17:18:58.384678 nanosleep({0, 100000000}, <unfinished ...> 10054 17:18:58.384751 setsid() = 10054 10054 17:18:58.384794 close(1) = 0 10054 17:18:58.384828 close(2) = 0 10054 17:18:58.384870 dup(0) = 1 10054 17:18:58.384901 dup(0) = 2 10054 17:18:58.385099 open("/usr/app/abrt-TEST/var/etc/abrt/abrt.conf", O_RDONLY) = 3 ... 10054 17:18:58.449108 inotify_init() = 4 10054 17:18:58.449148 inotify_add_watch(4, "/usr/app/abrt-TEST/var/cache/abrt", IN_CREATE) = 1 10054 17:18:58.449228 fstat(4, {st_mode=S_IFDIR|0600, st_size=0, ...}) = 0 10054 17:18:58.449288 fcntl(4, F_GETFL) = 0 (flags O_RDONLY) child: initialization is done, it signals parent: 10054 17:18:58.449346 getppid() = 10053 10054 17:18:58.449380 kill(10053, SIGTERM) = 0 10054 17:18:58.449427 write(1, "Debug: Running...\n"..., 18 <unfinished ...> 10053 17:18:58.449447 <... nanosleep resumed> 0) = ? ERESTART_RESTARTBLOCK (To be restarted) 10054 17:18:58.449470 <... write resumed> ) = 18 10054 17:18:58.449494 open("/usr/app/abrt-TEST/var/run/abrt.lock", O_RDWR|O_CREAT, 0640 <unfinished ...> 10053 17:18:58.449517 --- SIGTERM (Terminated) @ 0 (0) --- 10054 17:18:58.449565 <... open resumed> ) = 5 10053 17:18:58.449583 rt_sigreturn(0xf <unfinished ...> 10054 17:18:58.449607 fcntl(5, F_SETLK, {type=F_WRLCK, whence=SEEK_CUR, start=0, len=0} <unfinished ...> sleep(100ms) is interrupted: 10053 17:18:58.449629 <... rt_sigreturn resumed> ) = -1 EINTR (Interrupted system call) 10054 17:18:58.449664 <... fcntl resumed> ) = 0 10054 17:18:58.449688 unlink("/usr/app/abrt-TEST/var/run/abrt.pid" <unfinished ...> parent exits 0 because it got TERM which means child is ok: 10053 17:18:58.449713 exit_group(0) = ? ... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-08-065-0/+322
|\
| * move lib/MiddleWare/{ABRTPlugin,DynamicLibrary}.* to src/Daemon/Denys Vlasenko2009-08-065-0/+322
| |
* | Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-08-0610-19/+1443
|\| | | | | | | | | Conflicts: lib/CommLayer/DBusServerProxy.h
| * fix a case when we print a warning twice.Denys Vlasenko2009-08-062-0/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * dynamic_cast<> seems to be misbehaving. Disabling it for now.Denys Vlasenko2009-08-061-4/+4
| | | | | | | | | | | | abrt daemon is SEGVing without this Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * move lib/MiddleWare/PluginManager.* -> src/Daemon/PluginManager.*Denys Vlasenko2009-08-063-0/+444
| | | | | | | | | | | | This reduces code size by 14k. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * style cleanups in preparation for PluginManager moveDenys Vlasenko2009-08-061-13/+14
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * forgotten "git add"Denys Vlasenko2009-08-062-0/+964
| |
| * moving MiddleWare.{h,cpp} from lib/MiddleWare/ to src/Daemon/Denys Vlasenko2009-08-061-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * prepare makefiles for code movement between dirs. no code changesDenys Vlasenko2009-08-061-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * trailing whitespace removal. no code changesDenys Vlasenko2009-08-065-19/+30
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | DBUS: added method GetPluginsInfo()Jiri Moskovcak2009-08-062-0/+17
|/
* made some functions staticDenys Vlasenko2009-08-042-7/+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>
* simplify parameter/return value passing for boolsDenys Vlasenko2009-08-032-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* DBus: Many fixes to client -> cli works again, changed JobDone notificationJiri Moskovcak2009-08-032-24/+47
|
* KerneloopsReporter: plug a leak in writefunctionDenys Vlasenko2009-07-311-1/+1
| | | | | | Also some preparatory cleanups for future dumpoops patch are included Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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-222-16/+32
|
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtJiri Moskovcak2009-07-204-62/+158
|\
| * On exit, take care to emit consistent exit status.Denys Vlasenko2009-07-171-5/+13
| | | | | | | | | | | | If we were Ctrl-C'ed, then we should exit by killing ourself, not exit(N). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * rework unsafe handling of SIGINT/SIGTERMDenys Vlasenko2009-07-173-12/+69
| | | | | | | | | | | | | | | | | | | | 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-152-30/+57
| | | | | | | | | | | | The bug was observed when dbus-abrt.conf is missing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * test commitroot2009-07-151-1/+1
| | | | | | | | Signed-off-by: root <root@dhcp-lab-117.englab.brq.redhat.com>
* | Daemon: added threaded CreateReport -> breaks CLI!Jiri Moskovcak2009-07-202-41/+86
|/
* Removed unused fileJiri Moskovcak2009-07-072-191/+1
|
* documentation after English language review from rlandman@redhat.comDaniel Novotny2009-07-032-31/+34
|
* added a creation of directory for local buildingZdenek Prikryl2009-06-301-0/+3
|