Use process name if it is provided

This commit is contained in:
Andre Medeiros 2018-10-02 14:48:51 -04:00
parent 3cd5f60dd4
commit 9044560093
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class ProcessLauncher {
* @return {ProcessLauncher} The ProcessLauncher instance
*/
constructor(options) {
this.name = path.basename(options.modulePath);
this.name = options.name || path.basename(options.modulePath);
if (this._isDebug()) {
const childOptions = {stdio: 'pipe', execArgv: ['--inspect-brk=' + (60000 + processCount)]};