Skip to content

Commit

Permalink
[refactor] Implement silent fork via spawn stdio options.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed Jun 26, 2012
1 parent 4fed919 commit b7c303a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,8 @@ Monitor.prototype.trySpawn = function () {
this.spawnWith.env = this._getEnv();

if (this.fork) {
this.spawnWith.silent = true;
return fork(
path.join(__dirname, '..', '..', 'bin', 'fork-shim'),
[this.command].concat(this.args), this.spawnWith
);
this.spawnWith.stdio = [ 'pipe', 'pipe', 'pipe', 'ipc' ];
return spawn(this.command, this.args, this.spawnWith);
}

return spawn(this.command, this.args, this.spawnWith);
Expand Down

0 comments on commit b7c303a

Please sign in to comment.