Hi Michael, On Sat, Feb 06, 2010 at 04:22:16PM +0100, Michael Stapelberg wrote: > The problem was that pthread_cond_timedwait was used to sleep for a > specific amount of time. However, spurious wakeups may happen and thus > pthread_cond_timedwait may return without the timeout having actually > passed.
thanks for the patch :) I've applied it to the collectd-4.8 branch, so the next patch releases will include this fix. I've done a minor modification: Rather than using "bool" I've changed the "timeout_reached" to return "_Bool" which is a basic data type in C99. Regards, —octo -- Florian octo Forster Hacker in training GnuPG: 0x91523C3D http://verplant.org/
signature.asc
Description: Digital signature
_______________________________________________ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd