| 20390 | const fileName = this._getSpawnFileName(); |
| 20391 | const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName)); |
| 20392 | let stdbuffer = ""; |
| 20393 | if (cp.stdout) { |
| 20394 | cp.stdout.on("data", (data) => { |
| 20395 | if (this.options.listeners && this.options.listeners.stdout) { |
| 20396 | this.options.listeners.stdout(data); |
| 20397 | } |
| 20398 | if (!optionsNonNull.silent && optionsNonNull.outStream) { |
| 20399 | optionsNonNull.outStream.write(data); |
| 20400 | } |
| 20401 | stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => { |