Skip to content

Commit

Permalink
Update Misc/NEWS.d/next/Library/2020-03-15-05-41-05.bpo-39360.cmcU5p.rst
Browse files Browse the repository at this point in the history
Co-Authored-By: Pablo Galindo <[email protected]>
  • Loading branch information
isidentical and pablogsal committed Mar 15, 2020
1 parent 548d5fc commit 207d611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Lib/test/_test_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2785,10 +2785,10 @@ def test_pool_hang(self):
cmd = '''if 1:
from multiprocessing import Pool
class A:
def init(self):
def __init__(self):
self.pool = Pool(processes=1)
def do_something(x):
return x1
return x + 1
problem = A()
problem.pool.map(do_something, [1,2,3])
'''
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Ensure all workers exit when finalizing a :class:`multiprocessing.Pool`.
Patch by Batuhan Taskaya.
Ensure all workers exit when finalizing a :class:`multiprocessing.Pool` implicitly via the module finalization
handlers of multiprocessing. This fixes a deadlock situation that can be experienced when the Pool is not
properly finalized via the context manager or a call to ``multiprocessing.Pool.terminate``. Patch by Batuhan Taskaya.

0 comments on commit 207d611

Please sign in to comment.