diff options
author | vxiiduu <73044267+vxiiduu@users.noreply.github.com> | 2024-03-14 23:09:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 23:09:36 (GMT) |
commit | be1c808fcad201adc4d5d6cca52ddb24aeb5e367 (patch) | |
tree | ba92f317bedc3757a53f8ae2ad19b1225b93ac28 /iOS/Resources/pyconfig.h | |
parent | 7bbb9b57e67057d5ca3b7e3a434527fb3fcf5a2b (diff) | |
download | cpython-be1c808fcad201adc4d5d6cca52ddb24aeb5e367.zip cpython-be1c808fcad201adc4d5d6cca52ddb24aeb5e367.tar.gz cpython-be1c808fcad201adc4d5d6cca52ddb24aeb5e367.tar.bz2 |
gh-116195: Implements a fast path for nt.getppid (GH-116205)
Use the NtQueryInformationProcess system call to efficiently retrieve the parent process ID in a single step, rather than using the process snapshots API which retrieves large amounts of unnecessary information and is more prone to failure (since it makes heap allocations).
Includes a fallback to the original win32_getppid implementation in case the unstable API appears to return strange results.
Diffstat (limited to 'iOS/Resources/pyconfig.h')
0 files changed, 0 insertions, 0 deletions