MCPcopy Index your code
hub / github.com/RustPython/RustPython / _afterfork

Method _afterfork

Lib/multiprocessing/resource_sharer.py:111–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 self._cache.clear()
110
111 def _afterfork(self):
112 for key, (send, close) in self._cache.items():
113 close()
114 self._cache.clear()
115 self._lock._at_fork_reinit()
116 if self._listener is not None:
117 self._listener.close()
118 self._listener = None
119 self._address = None
120 self._thread = None
121
122 def _start(self):
123 from .connection import Listener

Callers

nothing calls this directly

Calls 5

closeFunction · 0.50
itemsMethod · 0.45
clearMethod · 0.45
_at_fork_reinitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected