зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1125990 - Repair simulator logs and exit codes. r=ochameau
This commit is contained in:
Родитель
68b063607b
Коммит
a6b860c5a5
|
@ -31,8 +31,8 @@ function SimulatorProcess(options) {
|
|||
this.options = options;
|
||||
|
||||
EventEmitter.decorate(this);
|
||||
this.on("stdout", data => { console.log(data.trim()) });
|
||||
this.on("stderr", data => { console.error(data.trim()) });
|
||||
this.on("stdout", (e, data) => { console.log(data.trim()) });
|
||||
this.on("stderr", (e, data) => { console.error(data.trim()) });
|
||||
}
|
||||
|
||||
SimulatorProcess.prototype = {
|
||||
|
@ -108,7 +108,7 @@ SimulatorProcess.prototype = {
|
|||
kill: function() {
|
||||
let deferred = promise.defer();
|
||||
if (this.process) {
|
||||
this.once("exit", (exitCode) => {
|
||||
this.once("exit", (e, exitCode) => {
|
||||
this.shuttingDown = false;
|
||||
deferred.resolve(exitCode);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче