From e097e4704b8b4fd8c8ec659a6e9cc83cb500cfc3 Mon Sep 17 00:00:00 2001 From: Anciety Date: Sun, 18 Aug 2019 11:58:35 +0800 Subject: win: stream: reset tty stream on close This was overlooked in 8072f085d2ed. Analogous to 8a782f1699e2. fix #10668 ref 8072f085d2ed #9884 ref 8a782f1699e2 #2377 --- test/functional/fixtures/tty-test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/functional') diff --git a/test/functional/fixtures/tty-test.c b/test/functional/fixtures/tty-test.c index e2a78a594b..4438b73a22 100644 --- a/test/functional/fixtures/tty-test.c +++ b/test/functional/fixtures/tty-test.c @@ -38,6 +38,9 @@ bool owns_tty(void) static void walk_cb(uv_handle_t *handle, void *arg) { if (!uv_is_closing(handle)) { +#ifdef WIN32 + uv_tty_set_mode(&tty, UV_TTY_MODE_NORMAL); +#endif uv_close(handle, NULL); } } -- cgit