cpython/Lib/multiprocessing
Gregory P. Smith 9a6137ad4b
[3.13] gh-126631: gh-137996: fix pre-loading of __main__ (GH-135295) (#138609)
gh-126631: gh-137996: fix pre-loading of `__main__`

The `main_path` parameter was renamed `init_main_from_name`, update the
forkserver code accordingly.  This was leading to slower startup times when people
were trying to preload the main module.

---------
(cherry picked from commit 0912b3a6db)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
2025-09-08 11:13:23 -07:00
..
dummy
__init__.py
connection.py [3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) (#134448) 2025-08-04 07:38:49 -07:00
context.py [3.13] gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH-134462) (#134620) 2025-05-24 04:13:37 +00:00
forkserver.py [3.13] gh-126631: gh-137996: fix pre-loading of __main__ (GH-135295) (#138609) 2025-09-08 11:13:23 -07:00
heap.py
managers.py [3.13] gh-71936: Fix race condition in multiprocessing.Pool (GH-124973) (GH-126869) 2024-11-15 14:05:14 +00:00
pool.py
popen_fork.py gh-83856: Honor atexit for all multiprocessing start methods (GH-114279) 2024-05-03 11:45:46 -07:00
popen_forkserver.py
popen_spawn_posix.py [3.13] gh-118981: multiprocessing.popen_spawn_posix, fix potential hang (gh-118982) (#138606) 2025-09-07 07:41:54 +00:00
popen_spawn_win32.py
process.py gh-83856: Honor atexit for all multiprocessing start methods (GH-114279) 2024-05-03 11:45:46 -07:00
queues.py
reduction.py
resource_sharer.py
resource_tracker.py [3.13] gh-131788: make resource_tracker re-entrant safe (GH-131787) (#137738) 2025-08-14 12:52:30 +02:00
shared_memory.py
sharedctypes.py
spawn.py
synchronize.py [3.13] remove type annotations from multiprocessing. (GH-129381) (#129470) 2025-01-30 08:54:15 +00:00
util.py [3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) (#134448) 2025-08-04 07:38:49 -07:00