Skip to content

Avoid file creation/deletion races in emsdk_env.sh by using a tempora…#307

Merged
kripken merged 2 commits into
emscripten-core:masterfrom
vargaz:emsdk-env-race
Jul 26, 2019
Merged

Avoid file creation/deletion races in emsdk_env.sh by using a tempora…#307
kripken merged 2 commits into
emscripten-core:masterfrom
vargaz:emsdk-env-race

Conversation

@vargaz
Copy link
Copy Markdown
Contributor

@vargaz vargaz commented Jul 26, 2019

…ry file.

Fixes emscripten-core/emscripten#9090.

Copy link
Copy Markdown
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vargaz! Looks good, just one small comment.

Comment thread emsdk Outdated
@kripken kripken merged commit e2110d8 into emscripten-core:master Jul 26, 2019
@vargaz vargaz deleted the emsdk-env-race branch July 27, 2019 06:29
tlively added a commit to tlively/emsdk that referenced this pull request Aug 27, 2019
The code for construct_env expects the output file to be at `argv[2]`,
but it is actually invoked in emsdk_env.{sh,fish} with $@ there
instead. Usually this is not a problem because the emdsk_env.{sh,fish}
is `sourced` directly from the user's shell and $@ is empty, but this
can break in scripted environments.

The $@ was added two years ago in 3b6c6b8 for no discernible reason,
but it was entirely ignored in the code until last month when emscripten-core#307
added a meaningful argument to construct_env but incorrectly kept the
$@.
tlively added a commit that referenced this pull request Aug 27, 2019
The code for construct_env expects the output file to be at `argv[2]`,
but it is actually invoked in emsdk_env.{sh,fish} with $@ there
instead. Usually this is not a problem because the emdsk_env.{sh,fish}
is `sourced` directly from the user's shell and $@ is empty, but this
can break in scripted environments.

The $@ was added two years ago in 3b6c6b8 for no discernible reason,
but it was entirely ignored in the code until last month when #307
added a meaningful argument to construct_env but incorrectly kept the
$@.
vargaz pushed a commit to vargaz/emsdk that referenced this pull request Nov 22, 2023
…-bump-3-1-30-net8

Bump emscripten to 3.1.30
vargaz pushed a commit to vargaz/emsdk that referenced this pull request Nov 22, 2023
…scripten-bump-3-1-30-net8"

This reverts commit 2552272, reversing
changes made to b1090ea.
vargaz pushed a commit to vargaz/emsdk that referenced this pull request Nov 22, 2023
…-bump-3-1-30-net8-revert

Revert "Merge pull request emscripten-core#307 from radekdoulik/pr-emscripten-bump-3…
vargaz pushed a commit to vargaz/emsdk that referenced this pull request Nov 22, 2023
…-bump-3-1-30-net8

Bump emscripten to 3.1.30
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.

emsdk_env.sh racy

2 participants