summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorvxiiduu <73044267+vxiiduu@users.noreply.github.com>2024-03-14 23:09:36 (GMT)
committerGitHub <noreply@github.com>2024-03-14 23:09:36 (GMT)
commitbe1c808fcad201adc4d5d6cca52ddb24aeb5e367 (patch)
treeba92f317bedc3757a53f8ae2ad19b1225b93ac28 /PC
parent7bbb9b57e67057d5ca3b7e3a434527fb3fcf5a2b (diff)
downloadcpython-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 'PC')
0 files changed, 0 insertions, 0 deletions