Windows: exit on ctrl+c

Fixes #1813
pull/5370/head
Bert Belder 2011-10-08 02:18:26 +02:00
parent af014c1a5e
commit d3f3f2e455
1 changed files with 1 additions and 0 deletions

View File

@ -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