Skip to content

Commit

Permalink
[minor] Prefer no spaces when declaring Array instances
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jul 8, 2012
1 parent 9823d13 commit c2baf66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,15 @@ forever.startDaemon = function (script, options) {
errFD = fs.openSync(options.logFile, 'a');
monitorPath = path.resolve(__dirname, '..', 'bin', 'monitor');

monitor = spawn(process.execPath, [ monitorPath, script ], {
stdio: [ 'ipc', outFD, errFD ],
monitor = spawn(process.execPath, [monitorPath, script], {
stdio: ['ipc', outFD, errFD],
detached: true
});

monitor.on('exit', function (code) {
console.error('Monitor died unexpectedly with exit code %d', code);
});

monitor.send(JSON.stringify(options));
monitor.unref();
};
Expand Down

0 comments on commit c2baf66

Please sign in to comment.