projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e1ee1b
)
olsrd plugin: Send a line to the daemon, so it answers.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 22 May 2009 15:36:38 +0000
(17:36 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 22 May 2009 15:36:38 +0000
(17:36 +0200)
src/olsrd.c
patch
|
blob
|
history
diff --git
a/src/olsrd.c
b/src/olsrd.c
index
123520a
..
8034dab
100644
(file)
--- 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);