mirror of https://github.com/nodejs/node.git
process: listen for the "exit" even on the main repl
parent
f214758dd1
commit
f9da776b33
|
@ -100,6 +100,9 @@
|
|||
if (NativeModule.require('tty').isatty(0)) {
|
||||
// REPL
|
||||
var repl = Module.requireRepl().start('> ', null, null, true);
|
||||
repl.on('exit', function() {
|
||||
process.exit();
|
||||
});
|
||||
|
||||
} else {
|
||||
// Read all of stdin - execute it.
|
||||
|
|
Loading…
Reference in New Issue