From 2bcbd184df8722198af7c2a5b3f39707dffd2744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 25 Sep 2024 22:54:35 +0200 Subject: [PATCH] vm: remove unnecessary call to uv_tty_reset_mode It's no longer needed in libuv 1.49 since closing the tty handle that set it resets it already. --- src/vm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vm.c b/src/vm.c index 1380b169..9d8fb8f1 100644 --- a/src/vm.c +++ b/src/vm.c @@ -326,9 +326,6 @@ TJSRuntime *TJS_NewRuntimeInternal(bool is_worker, TJSRunOptions *options) { void TJS_FreeRuntime(TJSRuntime *qrt) { qrt->freeing = true; - /* Reset TTY state (if it had changed) before exiting. */ - uv_tty_reset_mode(); - /* Close all core loop handles. */ uv_close((uv_handle_t *) &qrt->jobs.prepare, NULL); uv_close((uv_handle_t *) &qrt->jobs.idle, NULL);