olsrd plugin: Send a line to the daemon, so it answers.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 22 May 2009 15:36:38 +0000 (17:36 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 22 May 2009 15:36:38 +0000 (17:36 +0200)
src/olsrd.c

index 123520a..8034dab 100644 (file)
@@ -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);