From: Florian Forster Date: Fri, 22 May 2009 15:36:38 +0000 (+0200) Subject: olsrd plugin: Send a line to the daemon, so it answers. X-Git-Tag: collectd-4.8.0~110^2~3 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=7fb680ede5c3190a2cd1e87a4062c0d5023d15c0;hp=7e1ee1bc185e7638d6dbd643ff61bce340829bc6;p=collectd.git olsrd plugin: Send a line to the daemon, so it answers. --- diff --git a/src/olsrd.c b/src/olsrd.c index 123520a4..8034dab1 100644 --- a/src/olsrd.c +++ b/src/olsrd.c @@ -651,6 +651,9 @@ static int olsrd_read (void) /* {{{ */ if (fh == NULL) return (-1); + fputs ("\r\n", fh); + fflush (fh); + while (fgets (buffer, sizeof (buffer), fh) != NULL) { buffer_len = strchomp (buffer);