use writeFileSync for synchronous fs write operations - nodejs 7.x

This commit is contained in:
psychobunny
2017-03-13 13:57:35 -04:00
committed by GitHub
parent 0396e9300b
commit 4a33f45b1e

View File

@@ -223,7 +223,7 @@ fs.open(path.join(__dirname, 'config.json'), 'r', function (err) {
stderr: process.stderr,
});
fs.writeFile(pidFilePath, process.pid);
fs.writeFileSync(pidFilePath, process.pid);
}
async.series([