Skip to content

Commit 58b137a

Browse files
committed
non blocking acquire for __del__
2 parents 9847342 + dc2d578 commit 58b137a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/multiprocessing/resource_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def _stop(self, use_blocking_lock=True):
9191
self._lock.release()
9292

9393
def _cleanup(self, close=os.close, waitpid=os.waitpid, waitstatus_to_exitcode=os.waitstatus_to_exitcode):
94-
# This should not happen (_stop() isn't called by a finalizer)
95-
# but we check for it anyway.
94+
# This shouldn't happen (it might when called by a finalizer)
95+
# so we check for it anyway.
9696
if self._lock._recursion_count() > 1:
9797
return self._reentrant_call_error()
9898
if self._fd is None:

0 commit comments

Comments
 (0)