From: Sebastian Stark Date: Mon, 2 Feb 2009 09:32:12 +0000 (+0100) Subject: flush output after each command in interactive mode. X-Git-Tag: v0.1.0~16^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=f6b8d4e6ca179d4431d3dc3a851850f8dbecf079;p=adu.git flush output after each command in interactive mode. Otherwise "clients" that are not terminals have difficulties seeing adu's output. --- diff --git a/interactive.c b/interactive.c index 7327ee1..913d3f0 100644 --- a/interactive.c +++ b/interactive.c @@ -220,6 +220,7 @@ int com_interactive(void) ret = exec_interactive_command(line); if (ret < 0) printf("%s\n", adu_strerror(-ret)); + fflush(NULL); } return ret; }