mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fixes #1805. Reset TTY mode on exit.
This commit is contained in:
1 parent
d1e6a13179
commit
4e43afd973
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user