> +static int rrd_flush (const int timeout)
> +{
> + if (cache == NULL)
> + return (0);
Shouldn't this check be made with the lock held? I am not sure but else
we might have a race condition here.
> + pthread_mutex_lock (&cache_lock);
regards
Stefan
--
A soft drink turneth away company.