From 8474c9ca80ca1864930c3563dd4a03ae760736bf Mon Sep 17 00:00:00 2001 From: Bradley Meck Date: Thu, 16 Feb 2012 01:36:25 -0600 Subject: [PATCH] [api] forkShim option should allow a string to say which module to use when shimming (rather than the one currently used by this process) --- lib/forever/monitor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/forever/monitor.js b/lib/forever/monitor.js index 0519f6e8..7707cfac 100644 --- a/lib/forever/monitor.js +++ b/lib/forever/monitor.js @@ -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); }