Author: Armin Rigo <ar...@tunes.org>
Branch: py3.6
Changeset: r98236:21d58e234583
Date: 2019-12-05 18:34 +0100
http://bitbucket.org/pypy/pypy/changeset/21d58e234583/

Log:    Add comment

diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -208,6 +208,9 @@
     def reinit_lock(self):
         # Called after fork() to ensure that newly created child
         # processes do not share locks with the parent
+        # (Note that this runs after interp_imp.acquire_lock()
+        # done in the "before" fork hook, so that's why we decrease
+        # the lockcounter here)
         if self.lockcounter > 1:
             # Forked as a side effect of import
             self.lock = self.space.allocate_lock()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to