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

Method child

Lib/test/_test_multiprocessing.py:5518–5526  ·  view source on GitHub ↗
(cls, n, conn)

Source from the content-addressed store, hash-verified

5516
5517 @classmethod
5518 def child(cls, n, conn):
5519 if n > 1:
5520 p = multiprocessing.Process(target=cls.child, args=(n-1, conn))
5521 p.start()
5522 conn.close()
5523 join_process(p)
5524 else:
5525 conn.send(len(util._afterfork_registry))
5526 conn.close()
5527
5528 def test_lock(self):
5529 r, w = multiprocessing.Pipe(False)

Callers

nothing calls this directly

Calls 6

join_processFunction · 0.85
lenFunction · 0.85
ProcessMethod · 0.45
startMethod · 0.45
closeMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected