Node.js based forum software built for the modern web
use writeFileSync for synchronous fs write operations - nodejs 7.x
psychobunny4a33f45b1e91
diff --git a/loader.js b/loader.jsindex 38009f4691..654d77fb23 100644--- a/loader.js+++ b/loader.js@@ -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([