summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-04 16:06:40 +0000
committerRoy Marples <roy@marples.name>2007-07-04 16:06:40 +0000
commit710a67138f7efc4c3442fbbc1a37e1d7191f6a24 (patch)
treee74f73eacb521ab3779a894c6f75fdd797596a3f
parentf28763d4928a5ffb2c288388299ccf69ee26f26e (diff)
downloadopenrc-710a67138f7efc4c3442fbbc1a37e1d7191f6a24.tar.gz
openrc-710a67138f7efc4c3442fbbc1a37e1d7191f6a24.tar.bz2
openrc-710a67138f7efc4c3442fbbc1a37e1d7191f6a24.tar.xz
Flush the ebuffer before and after running a plugin.
-rw-r--r--src/rc-plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rc-plugin.c b/src/rc-plugin.c
index 5970dc5..a408b5a 100644
--- a/src/rc-plugin.c
+++ b/src/rc-plugin.c
@@ -113,6 +113,8 @@ void rc_plugin_run (rc_hook_t hook, const char *value)
if (rc_in_plugin)
return;
+ eflush ();
+
while (plugin) {
if (plugin->hook) {
int i;
@@ -181,6 +183,8 @@ void rc_plugin_run (rc_hook_t hook, const char *value)
}
plugin = plugin->next;
}
+
+ eflush ();
}
void rc_plugin_unload (void)