Skip to content

Commit bed2f38

Browse files
luisbosqueSandro Santilli
authored and
Sandro Santilli
committed
Remove pid from master pidfile name. Closes ql-io#20.
There's no use of a .pid file storing the PID if you need to know the PID in order to read the file...
1 parent 5fb7620 commit bed2f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Process.prototype.listen = function() {
189189
misc.ensureDir(process.cwd() + '/pids', true); // Ensure pids dir
190190
misc.ensureDir(process.cwd() + '/logs'); // Ensure logs dir
191191

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

195195
// Fork workers

0 commit comments

Comments
 (0)