MCPcopy Create free account
hub / github.com/RustPython/RustPython / _register_at_fork_reinit_lock

Function _register_at_fork_reinit_lock

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

Source from the content-addressed store, hash-verified

255
256if not hasattr(os, 'register_at_fork'): # Windows and friends.
257 def _register_at_fork_reinit_lock(instance):
258 pass # no-op when os.register_at_fork does not exist.
259else:
260 # A collection of instances with a _at_fork_reinit method (logging.Handler)
261 # 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