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

Method _launch

Lib/multiprocessing/popen_fork.py:63–83  ·  view source on GitHub ↗
(self, process_obj)

Source from the content-addressed store, hash-verified

61 self._send_signal(signal.SIGKILL)
62
63 def _launch(self, process_obj):
64 code = 1
65 parent_r, child_w = os.pipe()
66 child_r, parent_w = os.pipe()
67 self.pid = os.fork()
68 if self.pid == 0:
69 try:
70 atexit._clear()
71 atexit.register(util._exit_function)
72 os.close(parent_r)
73 os.close(parent_w)
74 code = process_obj._bootstrap(parent_sentinel=child_r)
75 finally:
76 atexit._run_exitfuncs()
77 os._exit(code)
78 else:
79 os.close(child_w)
80 os.close(child_r)
81 self.finalizer = util.Finalize(self, util.close_fds,
82 (parent_r, parent_w,))
83 self.sentinel = parent_r
84
85 def close(self):
86 if self.finalizer is not None:

Callers 1

__init__Method · 0.95

Calls 5

pipeMethod · 0.45
registerMethod · 0.45
closeMethod · 0.45
_bootstrapMethod · 0.45
_exitMethod · 0.45

Tested by

no test coverage detected