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

debugger: double ctrl+break on win should exit node

Fixes #1780.
  • Loading branch information...
1 parent f63a1f8 commit 0a42266824edc10049f26659c83a35e304866617 @indutny indutny committed with ry Sep 27, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/node.cc
View
@@ -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

0 comments on commit 0a42266

Please sign in to comment.