From 7fb680ede5c3190a2cd1e87a4062c0d5023d15c0 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 22 May 2009 17:36:38 +0200 Subject: [PATCH] olsrd plugin: Send a line to the daemon, so it answers. --- src/olsrd.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.11.0