Skip to content

Commit

Permalink
Remove pid from master pidfile name. Closes ql-io#20.
Browse files Browse the repository at this point in the history
There's no use of a .pid file storing the PID if you need to know
the PID in order to read the file...
  • Loading branch information
luisbosque authored and Sandro Santilli committed Dec 11, 2012
1 parent 5fb7620 commit bed2f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Process.prototype.listen = function() {
misc.ensureDir(process.cwd() + '/pids', true); // Ensure pids dir
misc.ensureDir(process.cwd() + '/logs'); // Ensure logs dir

fs.writeFileSync(self.options.pids + '/master.' + self.stats.pid + '.pid', self.stats.pid);
fs.writeFileSync(self.options.pids + '/master.pid', self.stats.pid);
console.log('Master ' + process.pid + ' started');

// Fork workers
Expand Down

0 comments on commit bed2f38

Please sign in to comment.