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

v1.18.x
psychobunny 8 years ago committed by GitHub
parent 0396e9300b
commit 4a33f45b1e

@ -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([

Loading…
Cancel
Save