Skip to content

Added a PyErr_CheckSignals() call every time we re-aquire the GIL#710

Merged
robambalu merged 1 commit into
mainfrom
rba/signal_check
Jun 8, 2026
Merged

Added a PyErr_CheckSignals() call every time we re-aquire the GIL#710
robambalu merged 1 commit into
mainfrom
rba/signal_check

Conversation

@robambalu

@robambalu robambalu commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

this is to ensure we process any pending signals even if not calling into python.

Also have PyEngine return NULL if there is a pending exception ( ie KeyboardInterrupt ) so that it gets raised on return

…is is to ensure we process any pending signals even if not calling into python.

Also have PyEngine return NULL if there is a pending exception ( ie KeyboardInterrupt ) so that it gets raised on return

Signed-off-by: Rob Ambalu <robert.ambalu@point72.com>
@timkpaine timkpaine changed the title Added a PyErr_CheckSignals() call every time we re-aquire the GIL. t… Added a PyErr_CheckSignals() call every time we re-aquire the GIL Jun 5, 2026
@robambalu robambalu merged commit 3f98441 into main Jun 8, 2026
25 checks passed
@robambalu robambalu deleted the rba/signal_check branch June 8, 2026 18:11
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.

2 participants