projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1e6a13
)
Fixes #1805. Reset TTY mode on exit.
author
Ryan Dahl
<ry@tinyclouds.org>
Fri, 30 Sep 2011 20:11:47 +0000
(13:11 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 30 Sep 2011 20:12:29 +0000
(13:12 -0700)
src/node.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
32df682
..
d94033a
100644
(file)
--- a/
src/node.cc
+++ b/
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);
}