Skip to content

Commit 87c8f9b

Browse files
gpsheaditamaro
andauthored
comment nit
Co-authored-by: Itamar Oren <itamarost@gmail.com>
1 parent c974afb commit 87c8f9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/multiprocessing/resource_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def _after_fork_in_child(self):
112112
# before the parent's __del__ runs, so by then the fd copies
113113
# are gone and the parent can reap the tracker promptly.
114114
#
115-
# - A raw os.fork() leaves the flag unset. We close the fd so
115+
# - A raw os.fork() leaves the flag unset. We close the fd in the child after forking so
116116
# the parent's __del__ can reap the tracker without waiting
117-
# for us to exit. If we later need a tracker, ensure_running()
117+
# for the child to exit. If we later need a tracker, ensure_running()
118118
# will launch a fresh one.
119119
self._lock._at_fork_reinit()
120120
self._reentrant_messages.clear()

0 commit comments

Comments
 (0)