Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fixes #1805. Reset TTY mode on exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 30, 2011
1 parent d1e6a13 commit 4e43afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.cc
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4e43afd

Please sign in to comment.