LOG: fix threaded logging.

This has been broken for a year - yikes!
Thanks to Voznesensky Vladimir for spotting it.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Bump the version to 0.14.0

Signed-off-by: The Quarterback Library Release Team <quarterback-devel@fedorahosted.org>
Fix a valgrind error.

just use the receive buffer, as it will be big enough.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Upgrade the doxygen config.

The new doxygen says SHOW_DIRECTORIES is deprecated.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
IPC: use calloc instead of malloc to fix valgrind warnings

This is to cleanup some valgrind warnings.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: use internal reclaim function

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: convert the rb_peek() status into a recv like status.

peek returns 0 on no data, so convert that to -EAGAIN.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: if read or peek don't get the message then re-post to the semaphore

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: use sem_getvalue as a tie breaker when read_pt == write_pt

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: cleanup the macros for wrapping the index

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: be more explicit about the word alignment

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: improve the debug print outs

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
RB: set the new read pointer after clearing the header.

This is to prevent a situation where a fast writer will
write their new chunk between setting the new read pointer
and clearing the header.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Bump the version to 0.14.1

Signed-off-by: The Quarterback Library Release Team <quarterback-devel@fedorahosted.org>
ipcs: avoid use-after-free for size-0 || disconnect-request

Hi,

Glancing through coverity-reported issues,
I saw that this one required attention:

From 70f1f689022321710405f16dc45b3df30c22bc59 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Wed, 18 Jul 2012 17:34:17 +0200
Subject: [PATCH] ipcs: avoid use-after-free for size-0 || disconnect-request

spotted by coverity:
http://libqb.org/html/0.14.1/coverity/1/265ipcs.c.html#error

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
tests/rbwriter: don't ignore write failure

Here's another fix.
In adjusting the printf, I added a cast and switched to %5ld.
I would have preferred to use %5jd as the printf format (i.e., then no
cast is needed), but saw no other uses of the "j" directive, so perhaps
you do not yet depend on printf with such support.

From 6d5d3af35d1f6851537f7af8996d1106c1ebe435 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Wed, 18 Jul 2012 17:54:38 +0200
Subject: [PATCH] tests/rbwriter: don't ignore write failure

Spotted by coverity:
This less-than-zero comparison of an unsigned value is never true.
"res < 0U".
http://libqb.org/html/0.14.1/coverity/1/7rbwriter.c.html#error

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
LOG: Invoke custom log filter function if tag changes
Merge pull request #39 from davidvossel/log_tag_fix

LOG: Invoke custom log filter function if tag changes
Add travis continuous integration config

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Remove color-tests and parallel-tests automake options.

This is just too painful for buildsystems like koji and travis.
You can't get access to the detailed output (error logs) that
otherwise be printed to screen.
I can't find a way to disable them on the command line (that
would be the best solution).

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>