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

Function send_handle

Lib/multiprocessing/reduction.py:95–98  ·  view source on GitHub ↗

Send a handle over a local connection.

(conn, handle, destination_pid)

Source from the content-addressed store, hash-verified

93 _winapi.CloseHandle(source_process_handle)
94
95 def send_handle(conn, handle, destination_pid):
96 '''Send a handle over a local connection.'''
97 dh = DupHandle(handle, _winapi.DUPLICATE_SAME_ACCESS, destination_pid)
98 conn.send(dh)
99
100 def recv_handle(conn):
101 '''Receive a handle over a local connection.'''

Callers

nothing calls this directly

Calls 4

DupHandleClass · 0.85
sendfdsFunction · 0.85
sendMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…