Skip to content

Conversation

jonatanklosko
Copy link
Member

Currently subprocess.run never finishes. Quoting the code comment:

# Some APIs in Python, such as subprocess.run, wait for a child
# OS process to finish. On Unix, this relies on `waitpid` C API,
# which does not work properly if SIGCHLD is ignored, resulting
# in infinite waiting. ERTS ignores the signal by default, so we
# explicitly restore the default handler.

It turns out we do exactly the same in EXLA.

@jonatanklosko jonatanklosko merged commit ea29718 into main Mar 3, 2025
9 checks passed
@jonatanklosko jonatanklosko deleted the jk-sigchld branch March 3, 2025 17:09
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.

1 participant