mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-09-27 09:10:38 +00:00
The update-manpages wrapper calls update_manpages.main() unconditionally. With spawn and forkserver, multiprocessing re-executes the directly run main script as __mp_main__. The wrapper then calls main() again and tries to create another Pool while the child is still starting. Protect the entrypoint with __main__ guard. On Linux, this was mostly hidden while fork was the default start method; Python 3.14 now defaults to forkserver there. Normal command-line behavior is unchanged. Add a regression test that mirrors multiprocessing's __mp_main__ execution path and checks that it does not call update_manpages.main(). Change-Id: I28fdb18ccf2e4d61605cc072b4de52b6eb561335 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/626841 Tested-by: Victor Pushkarev <corvinus.v@gmail.com> Commit-Queue: Victor Pushkarev <corvinus.v@gmail.com> Reviewed-by: Mike Frysinger <vapier@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com>
These are helper tools for managing official releases. See the release process document for more details.