projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5322d6
)
network plugin: Flush the buffer in the `shutdown' function..
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 12 Oct 2007 16:20:25 +0000
(18:20 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 12 Oct 2007 16:20:25 +0000
(18:20 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
84e7773
..
5ae36c1
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-1277,8
+1277,6
@@
static int network_config (const char *key, const char *val)
static int network_shutdown (void)
{
- DEBUG ("Shutting down.");
-
listen_loop++;
if (listen_thread != (pthread_t) 0)
@@
-1288,7
+1286,8
@@
static int network_shutdown (void)
listen_thread = (pthread_t) 0;
}
- listen_thread = 0;
+ if (send_buffer_fill > 0)
+ flush_buffer ();
if (cache_tree != NULL)
{