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>
This commit is contained in:
parent
74c2215086
commit
02a2a278f6
@ -56,6 +56,8 @@ int reset_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
|
|||||||
#if ENABLE_STTY
|
#if ENABLE_STTY
|
||||||
return stty_main(2, (char**)args);
|
return stty_main(2, (char**)args);
|
||||||
#else
|
#else
|
||||||
|
/* Make sure stdout gets drained before we execvp */
|
||||||
|
fflush_all();
|
||||||
execvp("stty", (char**)args);
|
execvp("stty", (char**)args);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user