Visitar URL original
gh-104372: Drop the GIL around the vfork() call. by gpshead · Pull Request #104782 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update the comment
  • Loading branch information
gpshead authored May 25, 2023
commit df7f7ab4587b5cc59bfe94dfe258e9ab8b19e974
3 changes: 2 additions & 1 deletion Modules/_posixsubprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@ do_fork_exec(char *const exec_array[],
*
Comment thread
gpshead marked this conversation as resolved.
* The vfork'ed child still runs in our address space. Per POSIX it
* must be limited to nothing but exec, but the Linux implementation
* is a little more usable. See the child_exec() comment.
* is a little more usable. See the child_exec() comment - The child
* MUST NOT re-acquire the GIL.
*/
vfork_tstate_save = PyEval_SaveThread();
pid = vfork();
Expand Down