Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Windows: exit on ctrl+c

Fixes #1813
  • Loading branch information...
piscisaureus committed Oct 8, 2011
1 parent af014c1 commit d3f3f2e455aa2792769634c76f5ee733e65a7b38
Showing with 1 addition and 0 deletions.
  1. +1 −0 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;

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

0 comments on commit d3f3f2e

Please sign in to comment.
You can’t perform that action at this time.