From: Fedor Indutny Date: Tue, 27 Sep 2011 17:37:37 +0000 (+0700) Subject: debugger: double ctrl+break on win should exit node X-Git-Tag: v0.5.8~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a42266824edc10049f26659c83a35e304866617;p=platform%2Fupstream%2Fnodejs.git debugger: double ctrl+break on win should exit node Fixes #1780. --- diff --git a/src/node.cc b/src/node.cc index 4933c0c..32df682 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2384,9 +2384,12 @@ static bool EnableDebugSignalHandler(DWORD signal) { if (!debugger_running) { fprintf(stderr, "Hit Ctrl+Break - starting debugger agent.\n"); EnableDebug(false); + return true; + } else { + // Run default system action (terminate) + return false; } - return true; } #endif