We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c974afb commit 87c8f9bCopy full SHA for 87c8f9b
1 file changed
Lib/multiprocessing/resource_tracker.py
@@ -112,9 +112,9 @@ def _after_fork_in_child(self):
112
# before the parent's __del__ runs, so by then the fd copies
113
# are gone and the parent can reap the tracker promptly.
114
#
115
- # - A raw os.fork() leaves the flag unset. We close the fd so
+ # - A raw os.fork() leaves the flag unset. We close the fd in the child after forking so
116
# the parent's __del__ can reap the tracker without waiting
117
- # for us to exit. If we later need a tracker, ensure_running()
+ # for the child to exit. If we later need a tracker, ensure_running()
118
# will launch a fresh one.
119
self._lock._at_fork_reinit()
120
self._reentrant_messages.clear()
0 commit comments