MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / after_fork

Function after_fork

_pydevd_bundle/pydevd_constants.py:499–509  ·  view source on GitHub ↗

Must be called after a fork operation (will reset the ForkSafeLock).

()

Source from the content-addressed store, hash-verified

497
498
499def after_fork():
500 """
501 Must be called after a fork operation (will reset the ForkSafeLock).
502 """
503 global _fork_safe_locks
504 locks = _fork_safe_locks[:]
505 _fork_safe_locks = []
506 for lock in locks:
507 lock = lock()
508 if lock is not None:
509 lock._init()
510
511
512_thread_id_lock = ForkSafeLock()

Callers

nothing calls this directly

Calls 1

_initMethod · 0.80

Tested by

no test coverage detected