update files

This commit is contained in:
nuintun
2015-12-04 17:58:01 +08:00
parent 1b8e084879
commit 12e9d713c5
3 changed files with 62 additions and 36 deletions

View File

@@ -26,7 +26,13 @@ Emulator.prototype = {
},
stop: function (){
if (this.thread) {
this.thread.kill('SIGTERM');
this.thread.kill('SIGKILL');
['stdin', 'stdout', 'stderr'].forEach(function (stream){
this.thread[stream].removeAllListeners();
}, this);
this.thread = null;
}
},
exec: function (){