summaryrefslogtreecommitdiffstats
path: root/Tools/README
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/README')
0 files changed, 0 insertions, 0 deletions
authorSam Gross <colesbury@gmail.com>2025-02-13 17:29:03 (GMT) committerGitHub <noreply@github.com>2025-02-13 17:29:03 (GMT) commit451f291baaff918228ace4e8257be42737d7654a (patch) tree0824f1f7ab3b13a292bf1c4a9a01b13c63915e2a /Tools parentaa284232013693103431fb672a0bcabac3d4200b (diff)downloadcpython-451f291baaff918228ace4e8257be42737d7654a.zip
cpython-451f291baaff918228ace4e8257be42737d7654a.tar.gz
cpython-451f291baaff918228ace4e8257be42737d7654a.tar.bz2
gh-128130: Fix unhandled keyboard interrupt data race (gh-129975)
Use an atomic operation when setting `_PyRuntime.signals.unhandled_keyboard_interrupt`. We now only clear the variable at the start of `_PyRun_Main`, which is the same function where we check it. This avoids race conditions where previously another thread might call `run_eval_code_obj()` and erroneously clear the unhandled keyboard interrupt.