From bed2f38f921ece1778861e4e49f19d6049394354 Mon Sep 17 00:00:00 2001 From: Luis Bosque Date: Thu, 4 Oct 2012 10:33:16 +0200 Subject: [PATCH] Remove pid from master pidfile name. Closes #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... --- lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/process.js b/lib/process.js index 24817a1..29b5a6c 100644 --- a/lib/process.js +++ b/lib/process.js @@ -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