MCPcopy Create free account
hub / github.com/microsoft/debugpy / child

Function child

tests/debugpy/test_multiproc.py:89–102  ·  view source on GitHub ↗
(q, a)

Source from the content-addressed store, hash-verified

87 p.join()
88
89 def child(q, a):
90 print("entering child") # @bp
91 assert q.get() == "foo?"
92 a.put(Foo())
93
94 assert q.get() == "child_pid?"
95 a.put(("child_pid", os.getpid()))
96
97 print("spawning child of child")
98 p = multiprocessing.Process(target=grandchild, args=(q, a))
99 p.start()
100 p.join()
101
102 print("leaving child")
103
104 def grandchild(q, a):
105 print("entering grandchild")

Callers

nothing calls this directly

Calls 7

putMethod · 0.80
receiveMethod · 0.80
FooClass · 0.70
getMethod · 0.45
startMethod · 0.45
joinMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…