开发者

how to check open file in other process or not?

开发者 https://www.devze.com 2023-04-10 06:04 出处:网络
开发者_StackOverflowI use simple scriptfor writing in file between node.js process: var stream = fs.createWriteStream(\'test\');

开发者_StackOverflowI use simple script for writing in file between node.js process:

var stream = fs.createWriteStream('test');
    stream.once('open', function(fd) {
        stream.write(progress_percents);
});

In log I see error "to many open file". How to write to file only if this file not using other processes ?


You've diagnosed the problem incorrectly. The too many open files error means that too many files are opened by this process.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号