MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _make_inheritable

Method _make_inheritable

tools/python-3.11.9-amd64/Lib/subprocess.py:1414–1420  ·  view source on GitHub ↗

Return a duplicate of handle, which is inheritable

(self, handle)

Source from the content-addressed store, hash-verified

1412
1413
1414 def _make_inheritable(self, handle):
1415 """Return a duplicate of handle, which is inheritable"""
1416 h = _winapi.DuplicateHandle(
1417 _winapi.GetCurrentProcess(), handle,
1418 _winapi.GetCurrentProcess(), 0, 1,
1419 _winapi.DUPLICATE_SAME_ACCESS)
1420 return Handle(h)
1421
1422
1423 def _filter_handle_list(self, handle_list):

Callers 1

_get_handlesMethod · 0.95

Calls 1

HandleClass · 0.70

Tested by

no test coverage detected