Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Avoid race conditions when multiple Gunthy GUI instances write to same file #23

Open
caogeoge opened this issue Sep 23, 2017 · 0 comments

Comments

@caogeoge
Copy link

Hi Sjakil,

With the implementation of multiple Gunthy GUI instances writing to the same gui-bots.json file, there might be race conditions between the different node.js processes trying to open, read & write to gui-bots.json. I don't know much about Node.js (and you probably have a better way) but with multiple Gunthy GUI instances you can avoid race condition when writing gui-bots.json in Node.js as following: https://stackoverflow.com/questions/28588707/node-js-check-if-a-file-is-open-before-copy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant