diff --git a/lib/core/processes/processWrapper.js b/lib/core/processes/processWrapper.js index aa5efdd9d..a897505c1 100644 --- a/lib/core/processes/processWrapper.js +++ b/lib/core/processes/processWrapper.js @@ -12,13 +12,14 @@ class ProcessWrapper { * Manages the log interception so that all console.* get sent back to the parent process * Also creates an Events instance. To use it, just do `this.events.[on|request]` * - * @param {Options} _options Nothing for now + * @param {Options} options pingParent: true by default */ - constructor(_options) { + constructor(options = {pingParent: true}) { this.interceptLogs(); this.events = new Events(); - - this.pingParent(); + if(options.pingParent) { + this.pingParent(); + } } // Ping parent to see if it is still alive. Otherwise, let's die diff --git a/lib/modules/solidity/solcP.js b/lib/modules/solidity/solcP.js index 6fd58a1df..eb3711c63 100644 --- a/lib/modules/solidity/solcP.js +++ b/lib/modules/solidity/solcP.js @@ -10,7 +10,7 @@ const NpmTimer = require('../library_manager/npmTimer'); class SolcProcess extends ProcessWrapper { constructor(options){ - super(); + super({pingParent: false}); this._logger = options.logger; this._showSpinner = options.showSpinner === true; }