mirror of
https://github.com/python/cpython.git
synced 2026-05-12 15:39:22 -04:00
6ba1234c1c
gh-104372: Drop the GIL around the vfork() call. (#104782)
On Linux where the `subprocess` module can use the `vfork` syscall for
faster spawning, prevent the parent process from blocking other threads
by dropping the GIL while it waits for the vfork'ed child process `exec`
outcome. This prevents spawning a binary from a slow filesystem from
blocking the rest of the application.
Fixes #104372.
(cherry picked from commit d08679212d)
Source files for standard library extension modules, and former extension modules that are now builtin modules.