MCPcopy Index your code
hub / github.com/python/cpython / child

Method child

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

Source from the content-addressed store, hash-verified

5848
5849 @classmethod
5850 def child(cls, n, conn):
5851 if n > 1:
5852 p = multiprocessing.Process(target=cls.child, args=(n-1, conn))
5853 p.start()
5854 conn.close()
5855 join_process(p)
5856 else:
5857 conn.send(len(util._afterfork_registry))
5858 conn.close()
5859
5860 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
5861 def test_lock(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected