Merge pull request #790 from embark-framework/bugfix/solc-die
Avoid Solc to die because of compilation
This commit is contained in:
commit
18ab1ce101
|
@ -12,13 +12,14 @@ class ProcessWrapper {
|
||||||
* Manages the log interception so that all console.* get sent back to the parent process
|
* 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]`
|
* 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.interceptLogs();
|
||||||
this.events = new Events();
|
this.events = new Events();
|
||||||
|
if(options.pingParent) {
|
||||||
this.pingParent();
|
this.pingParent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ping parent to see if it is still alive. Otherwise, let's die
|
// Ping parent to see if it is still alive. Otherwise, let's die
|
||||||
|
|
|
@ -10,7 +10,7 @@ const NpmTimer = require('../library_manager/npmTimer');
|
||||||
class SolcProcess extends ProcessWrapper {
|
class SolcProcess extends ProcessWrapper {
|
||||||
|
|
||||||
constructor(options){
|
constructor(options){
|
||||||
super();
|
super({pingParent: false});
|
||||||
this._logger = options.logger;
|
this._logger = options.logger;
|
||||||
this._showSpinner = options.showSpinner === true;
|
this._showSpinner = options.showSpinner === true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue