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

Function _serve_one

Lib/multiprocessing/forkserver.py:310–326  ·  view source on GitHub ↗
(child_r, fds, unused_fds, handlers)

Source from the content-addressed store, hash-verified

308
309
310def _serve_one(child_r, fds, unused_fds, handlers):
311 # close unnecessary stuff and reset signal handlers
312 signal.set_wakeup_fd(-1)
313 for sig, val in handlers.items():
314 signal.signal(sig, val)
315 for fd in unused_fds:
316 os.close(fd)
317
318 (_forkserver._forkserver_alive_fd,
319 resource_tracker._resource_tracker._fd,
320 *_forkserver._inherited_fds) = fds
321
322 # Run process object received over pipe
323 parent_sentinel = os.dup(child_r)
324 code = spawn._main(child_r, parent_sentinel)
325
326 return code
327
328
329#

Callers 1

mainFunction · 0.85

Calls 4

set_wakeup_fdMethod · 0.80
itemsMethod · 0.45
closeMethod · 0.45
dupMethod · 0.45

Tested by

no test coverage detected