Skip to content

Commit

Permalink
Windows: exit on ctrl+c
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Oct 8, 2011
1 parent af014c1 commit d3f3f2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3f3f2e

Please sign in to comment.