Skip to content

fix: skip current instance's child processes in Windows orphan killer#51686

Merged
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-skip-current-instance-s-child-processes-in-windows-orphan-killer-1779137075878
May 19, 2026
Merged

fix: skip current instance's child processes in Windows orphan killer#51686
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-skip-current-instance-s-child-processes-in-windows-orphan-killer-1779137075878

Conversation

@trop

@trop trop Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Backport of #51630

See that PR for details.

Notes: none.

The killOrphanedElectronProcesses beforeAll hook used wmic to find all
electron.exe processes by path, excluded only process.pid, then killed
the rest. On Windows, GPU/network/renderer helpers share the same exe
path — they were being killed as "orphans," causing repeated GPU process
crashes until Chromium fataled after 6 restarts.

Add a ParentProcessId-based descendant check (matching the existing
Linux /proc PPid walk) so child processes of the current instance are
preserved.

Followup to f9635f7 / #51476.

Co-authored-by: Charles Kerr <charles@charleskerr.com>
@trop trop Bot requested a review from ckerr May 18, 2026 20:45
@trop trop Bot added 42-x-y backport This is a backport PR semver/none labels May 18, 2026
@ckerr ckerr merged commit 87740a8 into 42-x-y May 19, 2026
120 of 125 checks passed
@ckerr ckerr deleted the trop/42-x-y-bp-fix-skip-current-instance-s-child-processes-in-windows-orphan-killer-1779137075878 branch May 19, 2026 01:17
@release-clerk

release-clerk Bot commented May 19, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant