Skip to content

Commit

Permalink
[api] forkShim option should allow a string to say which module to us…
Browse files Browse the repository at this point in the history
…e when shimming (rather than the one currently used by this process)
  • Loading branch information
bmeck authored and AvianFlu committed Apr 19, 2012
1 parent 2f93ba4 commit 8474c9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/forever/monitor.js
Expand Up @@ -219,6 +219,9 @@ Monitor.prototype.trySpawn = function () {
this.spawnWith.command = this.command;

if (this.forkShim) {
if (typeof this.forkShim === 'string') {
this.spawnWith.forkModule = this.forkShim;
}
this.spawnWith.env['FORK_SHIM'] = true;
return nodeFork.shim.fork(this.args[0], this.args.slice(1), this.spawnWith);
}
Expand Down

0 comments on commit 8474c9c

Please sign in to comment.