From: oetiker Date: Wed, 22 Oct 2008 20:41:59 +0000 (+0000) Subject: The previous code relied on the assumption that pthread_cond_init(&cond) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83e7998a143ec58940e3d8e8f3e8e16937be3b92;p=rrdtool-all.git The previous code relied on the assumption that pthread_cond_init(&cond) was equivalent to memset(&cond,0). This may not be true on all platforms. -- kevin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1627 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index 8d26e0a6..bee21a2d 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -1450,6 +1450,7 @@ static int handle_request_update (listen_socket_t *sock, /* {{{ */ wipe_ci_values(ci, now); ci->flags = CI_FLAGS_IN_TREE; + ci->flushed = PTHREAD_COND_INITIALIZER; pthread_mutex_lock(&cache_lock); g_tree_insert (cache_tree, (void *) ci->file, (void *) ci);