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

fix concurrency in init code, fixes #163 #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joernhees
Copy link

Caches and prefers existing .junest/etc/passwd and group files

Before this fix it was possible that concurrent startup (as in multiple junest processes) lead to partial files for some of the junest processes.

This is a quick fix removing the bug and speeding up startup. There are however a couple of issues that more experienced junest members should look into:

  • are there other shared files that could cause concurrency issues between multiple junest invocations? I didn't find any, but please check.
  • caching always comes at the cost of outdated info... in theory it is possible that the system's passwd and group info change. This will however not happen on each normal junest user startup, which is the rational for my fix. It might however be desirable to allow a user to manually reset such caches. Docs should point out that such calls shouldn't be parallelized though.

caches and prefers existing .junest/etc/passwd and group files

before this fix it was possible that concurrent startup (as in multiple junest processes)
lead to partial files for some of the junest processes.
@joernhees joernhees changed the title 🐛 🐎 fix concurrency in init code, fixes #163 fix concurrency in init code, fixes #163 Nov 18, 2016
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

Successfully merging this pull request may close these issues.

None yet

1 participant