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

Function _register_at_fork_reinit_lock

Lib/logging/__init__.py:254–255  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

252
253if not hasattr(os, 'register_at_fork'): # Windows and friends.
254 def _register_at_fork_reinit_lock(instance):
255 pass # no-op when os.register_at_fork does not exist.
256else:
257 # A collection of instances with a _at_fork_reinit method (logging.Handler)
258 # to be called in the child after forking. The weakref avoids us keeping

Callers 1

createLockMethod · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…