From 4e43afd9737f6c2f1b51d8dbfbb2bc42fabc4deb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 30 Sep 2011 13:11:47 -0700 Subject: [PATCH] Fixes #1805. Reset TTY mode on exit. --- src/node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index 32df682..d94033a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2180,12 +2180,12 @@ Handle SetupProcessObject(int argc, char *argv[]) { static void AtExit() { node::Stdio::Flush(); - node::Stdio::DisableRawMode(STDIN_FILENO); + uv_tty_reset_mode(); } static void SignalExit(int signal) { - Stdio::DisableRawMode(STDIN_FILENO); + uv_tty_reset_mode(); _exit(1); } -- 2.7.4