From: Glenn Matthews Date: Fri, 17 Feb 2017 22:01:13 +0000 (+0100) Subject: reset: before calling execvp(), reset needs to flush stdout X-Git-Tag: 1_27_0~114 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=02a2a278f6684f742fe131e1b598ca01cfa240db;p=oweals%2Fbusybox.git reset: before calling execvp(), reset needs to flush stdout Signed-off-by: Glenn Matthews Signed-off-by: Denys Vlasenko --- diff --git a/console-tools/reset.c b/console-tools/reset.c index 57cebb4ea..587c0d11a 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c @@ -56,6 +56,8 @@ int reset_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) #if ENABLE_STTY return stty_main(2, (char**)args); #else + /* Make sure stdout gets drained before we execvp */ + fflush_all(); execvp("stty", (char**)args); #endif }