X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=cb8ad593cbe51d4f9a36f22734fc273c8f724810;hb=65dba471769a4e69bc505c758015ffdfb76a6053;hp=4655b96ee77c79a74dca16f9f412bd2df55d3cd7;hpb=debf97972666d688bace07d1b5ee3ef958ac7cee;p=collectd.git diff --git a/src/rrdtool.c b/src/rrdtool.c index 4655b96e..cb8ad593 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -303,7 +303,7 @@ static void *rrd_queue_thread (void __attribute__((unused)) *data) pthread_mutex_lock (&queue_lock); /* Wait for values to arrive */ - while (true) + while (42) { struct timespec ts_wait; @@ -342,7 +342,7 @@ static void *rrd_queue_thread (void __attribute__((unused)) *data) &ts_wait); if (status == ETIMEDOUT) break; - } /* while (true) */ + } /* while (42) */ /* XXX: If you need to lock both, cache_lock and queue_lock, at * the same time, ALWAYS lock `cache_lock' first! */