Skip to content

Commit

Permalink
fix: only use fork if node>4
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Dec 13, 2017
1 parent 2d4ce03 commit f52615c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function run(options) {
});
}

if (executable === 'node') {
if (executable === 'node' && utils.version.major > 4) {
var forkArgs = cmd.args.slice(1);
var env = utils.merge(options.execOptions.env, process.env);
stdio.push('ipc');
Expand Down

0 comments on commit f52615c

Please sign in to comment.