aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/reset.c2
1 files changed, 2 insertions, 0 deletions
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
}