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.
V
vxiiduu committed
be1c808fcad201adc4d5d6cca52ddb24aeb5e367
Parent: 7bbb9b5
Committed by GitHub <noreply@github.com>
on 3/14/2024, 11:09:36 PM