10000 gh-90622: Do not spawn ProcessPool workers on demand via fork method. by gpshead · Pull Request #91598 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-90622: Do not spawn ProcessPool workers on demand via fork method. #91598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
Next Next commit
Merge branch 'main' into disallow-dynamic-process-spawn-with-fork-bug…
…fix-only
  • Loading branch information
gpshead authored Apr 17, 2022
commit 2ebd47ab629723821485fbacad522842cba9bdf8
1 change: 1 addition & 0 deletions Lib/test/test_concurrent_futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ def acquire_lock(lock):
expected_num_processes = self.worker_count
else:
expected_num_processes = 3

sem = mp_context.Semaphore(0)
for _ in range(3):
self.executor.submit(acquire_lock, sem)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0