Skip to content

Commit

Permalink
[merge] Resolve bad cherry-pick from fork branch
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jan 5, 2012
1 parent 1f673f9 commit 285b659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var fs = require('fs'),
exec = require('child_process').exec,
spawn = require('child_process').spawn,
cliff = require('cliff'),
daemon = require('daemon'),
nconf = require('nconf'),
nssocket = require('nssocket'),
portfinder = require('portfinder'),
Expand Down
4 changes: 2 additions & 2 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Monitor.prototype.trySpawn = function () {

return this.fork
? this._forkSpawn()
: spawn(this.command, this.options, this.spawnWith);
: spawn(this.command, this.args, this.spawnWith);
};

//
Expand Down Expand Up @@ -434,7 +434,7 @@ Monitor.prototype._forkSpawn = function () {
});

process.execPath = this.command;
forked = fork(this.options[0], this.options.slice(1), hackSpawn);
forked = fork(this.args[0], this.args.slice(1), hackSpawn);
process.execPath = execPath;
return forked;
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"minimatch": "0.0.x",
"nconf": "0.5.x",
"nssocket": "0.3.x",
"node-fork": "git://git@github.com:bmeck/node-fork.git",
"node-fork": "git://github.com/bmeck/node-fork.git",
"optimist": "0.2.x",
"pkginfo": "0.x.x",
"portfinder": "0.x.x",
Expand Down

0 comments on commit 285b659

Please sign in to comment.