Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Removed rl.on('close', ...) callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Southern authored and isaacs committed Feb 23, 2012
1 parent e60b18b commit ac9fa2b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/_debugger.js
Expand Up @@ -754,12 +754,7 @@ function Interface(stdin, stdout, args) {
this.repl = new repl.REPLServer('debug> ', streams,
this.controlEval.bind(this), false, true);

// Kill child process when repl closed or main process is dead
this.repl.rli.addListener('close', function() {
self.killed = true;
self.killChild();
});

// Kill child process when main process dies
process.on('exit', function() {
self.killChild();
});
Expand Down

0 comments on commit ac9fa2b

Please sign in to comment.