Permalink
Browse files

debugger: double ctrl+break on win should exit node

  • Loading branch information...
1 parent 67706b8 commit 6996cf338d01786d48f2e2c5440cb87e10b51a65 @indutny committed 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 6996cf3

Please sign in to comment.