Merge pull request #262 from bldewolf/re-classify-control-socket-EOF-log-lines

Change control socket message from notice to debug
test_systemd_journal: do not check HOST_FROM, because it is not set by the journal_reader

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
journald-mock: do not use pipe2() which is linux(glibc>=2.9)-specific

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
systemd-journal: use the sd_journal_get_realtime_usec instead of _SOURCE_REALTIME_TIMESTAMP field

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: Added debug message for incoming messages from journal.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: only one instance is acceptable

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: if _COMM field does not exists, use the PROGRAM_IDENTIFIER field.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
systemd-journal: add seek_to_tail function to journald_subsystem

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
Merge pull request #263 from juhaszviktor/f/journald-fixes

F/journald fixes
logthrdestdrv: Fixes for centralized retries() functionality

New worker insert result type added: WORKER_INSERT_RESULT_NOT_CONNECTED.

When an insert() failes due to a connection error, syslog-ng
 - should rewind the message
 - should do suspend()
 - and should not increment retries counter.

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>