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

emsdk_env.sh racy #9090

Closed
vargaz opened this issue Jul 26, 2019 · 0 comments · Fixed by emscripten-core/emsdk#307
Closed

emsdk_env.sh racy #9090

vargaz opened this issue Jul 26, 2019 · 0 comments · Fixed by emscripten-core/emsdk#307

Comments

@vargaz
Copy link
Contributor

vargaz commented Jul 26, 2019

emsdk_env.sh calls emsdk construct_env which deletes the output file before creating the new one. If multiple copies of this script are ran in parallel in multiple shells, one copy could delete the file the other one is trying to source leading to errors like:
-bash: ./emsdk_set_env.sh: No such file or directory

kripken pushed a commit to emscripten-core/emsdk that referenced this issue Jul 26, 2019
sbc100 added a commit to emscripten-core/emsdk that referenced this issue Jul 9, 2020
This is an alternative fix for
emscripten-core/emscripten#9090 which recently
came up again after #539.

Tested with bash, tcsh and fish.
sbc100 added a commit to emscripten-core/emsdk that referenced this issue Jul 9, 2020
This is an alternative fix for
emscripten-core/emscripten#9090 which recently
came up again after #539.

Tested with bash, tcsh and fish.
sbc100 added a commit to emscripten-core/emsdk that referenced this issue Jul 11, 2020
This is an alternative fix for
emscripten-core/emscripten#9090 which recently
came up again after #539.

Tested with bash, tcsh and fish.
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 a pull request may close this issue.

1 participant