summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2011-10-08 02:18:26 +0200
committerBert Belder <bertbelder@gmail.com>2011-10-08 02:52:07 +0200
commitd3f3f2e455aa2792769634c76f5ee733e65a7b38 (patch)
tree9d4a055f5ca111f7eb5fded8d71b133be10d7bff
parentaf014c1a5efce54a8154d8758657852954685e0c (diff)
downloadnode-new-d3f3f2e455aa2792769634c76f5ee733e65a7b38.tar.gz
Windows: exit on ctrl+c
Fixes #1813
-rw-r--r--src/node.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index b46705943a..99fd0eb80b 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -2404,6 +2404,7 @@ static void EnableDebugSignalHandler(int signal) {
#if defined(__MINGW32__) || defined(_MSC_VER)
static bool EnableDebugSignalHandler(DWORD signal) {
+ if (signal == CTRL_C_EVENT) exit(1);
if (signal != CTRL_BREAK_EVENT) return false;
// Break once process will return execution to v8