diff options
author | Glenn Matthews <glmatthe@cisco.com> | 2017-02-17 23:01:13 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-02-17 23:02:06 +0100 |
commit | 02a2a278f6684f742fe131e1b598ca01cfa240db (patch) | |
tree | b6e604edc1e7f201469a34f4e99b523ec5ce3c85 | |
parent | 74c2215086d45ae9cbc0114235895e5bcc887071 (diff) | |
download | busybox-w32-02a2a278f6684f742fe131e1b598ca01cfa240db.tar.gz busybox-w32-02a2a278f6684f742fe131e1b598ca01cfa240db.tar.bz2 busybox-w32-02a2a278f6684f742fe131e1b598ca01cfa240db.zip |
reset: before calling execvp(), reset needs to flush stdout
Signed-off-by: Glenn Matthews <glmatthe@cisco.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | console-tools/reset.c | 2 |
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) | |||
56 | #if ENABLE_STTY | 56 | #if ENABLE_STTY |
57 | return stty_main(2, (char**)args); | 57 | return stty_main(2, (char**)args); |
58 | #else | 58 | #else |
59 | /* Make sure stdout gets drained before we execvp */ | ||
60 | fflush_all(); | ||
59 | execvp("stty", (char**)args); | 61 | execvp("stty", (char**)args); |
60 | #endif | 62 | #endif |
61 | } | 63 | } |