Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Windows: exit on ctrl+c
Browse files Browse the repository at this point in the history
Fixes #1813
  • 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
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;

This comment has been minimized.

Copy link
@indutny

indutny Oct 8, 2011

Member

Actually, I thought that returning false should invoke system's default listener (i.e. terminate script). Isn't it working?


// Break once process will return execution to v8
Expand Down

0 comments on commit d3f3f2e

Please sign in to comment.