projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/plugin.c: Stop write threads before calling shutdown callbacks.
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
71eb1f2
..
9d33acd
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-2893,6
+2893,11
@@
static int network_write (const data_set_t *ds, const value_list_t *vl,
{
int status;
+ /* listen_loop is set to non-zero in the shutdown callback, which is
+ * guaranteed to be called *after* all the write threads have been shut
+ * down. */
+ assert (listen_loop == 0);
+
if (!check_send_okay (vl))
{
#if COLLECT_DEBUG