summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-09-05 03:20:07 +0000
committertholo <tholo@openbsd.org>1996-09-05 03:20:07 +0000
commitf0fd972a5e09877c00b1fddae872e8664c60ac4c (patch)
tree7865b9c7750683b99a18483743a0d29e9bef83c9
parentdocument latest rcmd change (diff)
downloadwireguard-openbsd-f0fd972a5e09877c00b1fddae872e8664c60ac4c.tar.xz
wireguard-openbsd-f0fd972a5e09877c00b1fddae872e8664c60ac4c.zip
Add strategic fflush() before suspending on keyboard generated signal
-rw-r--r--lib/libcurses/lib_tstp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libcurses/lib_tstp.c b/lib/libcurses/lib_tstp.c
index 73be68af51c..7adca9e8cfd 100644
--- a/lib/libcurses/lib_tstp.c
+++ b/lib/libcurses/lib_tstp.c
@@ -117,6 +117,7 @@ static void tstp(int dummy)
* original (pre-curses) modes.
*/
endwin();
+fflush(stdout);
/* Unblock SIGTSTP. */
(void)sigemptyset(&mask);