edk2/BaseTools/Source
Michael D Kinney f26760f5e2 BaseTools/Source/C/Makefiles: Detect cycle in pids
Update _get_win32_parent_processes() to detect a
cycle in parent process ids that can cause
_get_win32_parent_processes() to never return.

If a pid cycle is detected, then return the list
of parent process ids detected up to the point
the cycle is detected.

GitHub Actions builds using windows-2025 can
reproduce this issue once in a while. It shows
up as job that runs until a timeout. If the job
is canceled, the logs show a python stack in the
loop in _get_win32_parent_processes().

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2026-01-06 06:27:41 +00:00
..
C BaseTools/Source/C/Makefiles: Detect cycle in pids 2026-01-06 06:27:41 +00:00
Python BaseTools/build: Add defines for Windows build environments 2026-01-06 04:44:08 +00:00