summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 332511a)
raw | patch | inline | side by side (parent: 332511a)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 5 Mar 2012 16:49:01 +0000 (16:49 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 5 Mar 2012 16:49:01 +0000 (16:49 +0000) |
program/src/rrd_daemon.c | patch | blob | history |
index 17153ce98be3309f985b885b486e3a0fc7b5fd6d..4dfe35c283dc0189459417f66b2dc8bd5f37a4c9 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
static void sig_common (const char *sig) /* {{{ */
{
RRDD_LOG(LOG_NOTICE, "caught SIG%s", sig);
- state = FLUSHING;
+ if (state == RUNNING) {
+ state = FLUSHING;
+ }
pthread_cond_broadcast(&flush_cond);
pthread_cond_broadcast(&queue_cond);
} /* }}} void sig_common */