MCPcopy Index your code
hub / github.com/python/cpython / _afterFork

Function _afterFork

Lib/logging/__init__.py:242–248  ·  view source on GitHub ↗

After a new child process has been forked, release the module-level lock. This should be used in conjunction with _prepareFork().

()

Source from the content-addressed store, hash-verified

240 raise
241
242def _afterFork():
243 """
244 After a new child process has been forked, release the module-level lock.
245
246 This should be used in conjunction with _prepareFork().
247 """
248 _lock.release()
249
250
251# Prevent a held logging lock from blocking a child from logging.

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…