Skip to content

[3.12] gh-110429: Fix race condition in "make regen-all" (GH-110433)#110438

Merged
vstinner merged 1 commit intopython:3.12from
miss-islington:backport-fb6c4ed-3.12
Oct 5, 2023
Merged

[3.12] gh-110429: Fix race condition in "make regen-all" (GH-110433)#110438
vstinner merged 1 commit intopython:3.12from
miss-islington:backport-fb6c4ed-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 5, 2023

"make regen-pegen" now creates a temporary file called "parser.c.new"
instead of "parser.new.c". Previously, if "make clinic" was run in
parallel with "make regen-all", clinic may try but fail to open
"parser.new.c" if the temporay file was removed in the meanwhile.
(cherry picked from commit fb6c4ed)

Co-authored-by: Victor Stinner vstinner@python.org

)

"make regen-pegen" now creates a temporary file called "parser.c.new"
instead of "parser.new.c". Previously, if "make clinic" was run in
parallel with "make regen-all", clinic may try but fail to open
"parser.new.c" if the temporay file was removed in the meanwhile.
(cherry picked from commit fb6c4ed)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants