abrtd: set inotify fd to non-blocking mode; ignore 0-sized inotify reads. Closes rhbz#873815

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrtd: don't mark problems having count > 1 as duplicates. Closes rhbz#886631

Signed-off-by: Jakub Filak <jfilak@redhat.com>
rhbz#852760: fix loop condition in generation of oops duphash

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrt-action-analyze-oops: fail if we end up hashing "" (empty string). Closes rhbz#862013

While we are at it, fix memory leaks (w/o changing the logic)
in oops hashing code.

This is backported commit ab2eefe80e175e0b4e04077e390d39e0297f4f68

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Teach kernel oops hash to ignore "<IRQ>" / "<EOI>" prefixes. Closes rhbz#876605

This is the backported commit 559ab9535ef4caf4f9bc22c4b6ab332042ced462

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
fixed the make check related to rhbz#864023
fixed the relro flags rhbz#812284

- more details: http://post-office.corp.redhat.com/archives/os-devel-list/2011-July/msg00162.html

Conflicts:
	src/daemon/Makefile.am
libabrt: link with libreport rhbz#892658

Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
abrt-action-install-debuginfo-to-abrt-cache: clear entire environment rhbz#854011

Just blacklisting a few variables proved to be not reliable enough.
For example, we forgot to remove $PYTHONPATH.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrt-server: do not save the repeating crash in the same executable. Closes rhbz#826924

It is a backport of commit d73709e5066cf39d93f012c6b4dac063c987d722.

After this change, the following happens when the same
python script fails in rapid succession:

    abrtd: New client connected
    abrt-server[6294]: Not saving repeating crash in '/usr/bin/fedpkg'

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrtd: allow parallel runs of "post-create" events

This is the backport of commits f8e673981bdd93b24ffe6251f4069b86aeb24
and 309240341b05dd1c252bc4982bb93dcb30d3d573.

Before this patch, abrtd will be stuck waiting for "post-create" to finish,
not accepting, for example, socket connections while it runs.
(On my system, "post-create" takes 1 minute because of broken sendmail).

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrtd: preparatory patch. Only moves blocks of code around w/o changes

This is the backport of commit bfc4d58f4fd03710e9dae40b6a1cd36fd51e1954

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrtd: fix a problem when we eat "post-create" exit code prematurely

This is a backport of commits 7b11f8a6bb6543aafcd6105cc7c0862cf7d61acb
and b597527db034b9fd11b90b0e34e6f91f24d4f52f.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
abrtd: do not run post-create event concurrently

This is the backport of commit d571711e1a4772274ed1d625a8d99e22bb0e9e73

Concurrent run of post-create event may mark all processed problems as
duplicates of each other and delete all of them.

This change serialized them:

* abrtd accepts notifications and pushes a problem directory to a queue
* after processing of one problem abrtd pops a directory from the queue
  and continues processing with next directory

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
multilib fixes

Signed-off-by: Jiri Moskovcak <jmoskovc@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>
abrtd: disable glib's buffering on inotify reads. Closes rhbz#873815

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>