Skip to content

Commit 8474c9c

Browse files
bmeckAvianFlu
authored andcommitted
[api] forkShim option should allow a string to say which module to use when shimming (rather than the one currently used by this process)
1 parent 2f93ba4 commit 8474c9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/forever/monitor.js

+3
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ Monitor.prototype.trySpawn = function () {
219219
this.spawnWith.command = this.command;
220220

221221
if (this.forkShim) {
222+
if (typeof this.forkShim === 'string') {
223+
this.spawnWith.forkModule = this.forkShim;
224+
}
222225
this.spawnWith.env['FORK_SHIM'] = true;
223226
return nodeFork.shim.fork(this.args[0], this.args.slice(1), this.spawnWith);
224227
}

0 commit comments

Comments
 (0)