[collectd] [PATCH] utils_cmd_flush.c: Terminate all lines printed to the socket with a newline.

Sebastian Harl sh at tokkee.org
Sat Mar 22 17:21:45 CET 2008


Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 src/utils_cmd_flush.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/utils_cmd_flush.c b/src/utils_cmd_flush.c
index 6832493..c214d07 100644
--- a/src/utils_cmd_flush.c
+++ b/src/utils_cmd_flush.c
@@ -118,7 +118,7 @@ int handle_flush (FILE *fh, char **fields, int fields_num)
 	else
 	{
 		plugin_flush_all (fi.timeout);
-		fprintf (fh, "0 Done");
+		fprintf (fh, "0 Done\n");
 	}
 	fflush (fh);
 
-- 
1.5.4.3.325.g6d216

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080322/cce005a3/attachment.pgp 


More information about the collectd mailing list