Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixes #1805. Reset TTY mode on exit.

  • Loading branch information...
ry committed Sep 30, 2011
1 parent d1e6a13 commit 4e43afd9737f6c2f1b51d8dbfbb2bc42fabc4deb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node.cc
@@ -2180,12 +2180,12 @@ Handle<Object> 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);
}

0 comments on commit 4e43afd

Please sign in to comment.
You can’t perform that action at this time.