When I use nodejs with cluster module, does following code mess up file contents?
if (!cluster.isMaster) {
var stream = fs.createWriteStream('samefile.txt', {flags: 'a'});
for (var i = 0; i < 100000; ++i)
stream.write('... big string ... \n');
}
I tested, but line was not mixed.
But I couldn't find document or base about file stream's cluster safety.