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

Function child_fn

extra_tests/test_manager_fork_debug.py:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 ev = manager.Event()
38
39 def child_fn():
40 try:
41 ev.set()
42 result.value = 42
43 except Exception as e:
44 print(f" CHILD ERROR: {e}", file=sys.stderr)
45 traceback.print_exc()
46 sys.exit(1)
47
48 print(f" Starting child process...")
49 process = ctx.Process(target=child_fn)

Callers

nothing calls this directly

Calls 4

print_excMethod · 0.80
printFunction · 0.50
setMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected