Browse Source

Windows: exit on ctrl+c

Fixes #1813
v0.7.4-release
Bert Belder 13 years ago
parent
commit
d3f3f2e455
  1. 1
      src/node.cc

1
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

Loading…
Cancel
Save