Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ register_after_fork
Function
register_after_fork
Lib/multiprocessing/util.py:242–243 ·
view source on GitHub ↗
(obj, func)
Source
from the content-addressed store, hash-verified
240
info(
'after forker raised exception %s'
, e)
241
242
def
register_after_fork(obj, func):
243
_afterfork_registry[(next(_afterfork_counter), id(obj), func)] = obj
244
245
#
246
# Finalization using weakrefs
Callers
3
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
Calls
1
id
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…