[syslog-ng] [PATCH 1/1] afmongodb: Fix a race condition in the queue & wakeup mechanism

Balazs Scheidler bazsi at balabit.hu
Sat Mar 31 21:45:13 CEST 2012


We really have to nail the blocking log queue stuff. We have races here
and there and I'm not really confident by this patch either.

I've applied it anyway, but the priority of the proper solution is on
the top of my syslog-ng related todo list now.

On Fri, 2012-03-23 at 16:24 +0100, Gergely Nagy wrote:
> The problem was found and analysed by Whille, the patch is based on
> his observations.
> 
> The patch corrects a situation where - due to a race condition - the
> worker thread could end up in a permanent sleeping state.
> 
> Reported-by: whille <whille at 163.com>
> Signed-off-by: Gergely Nagy <algernon at balabit.hu>
> ---
>  modules/afmongodb/afmongodb.c |   18 ++++++-
-- 
Bazsi




More information about the syslog-ng mailing list