Skip to content

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

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

fix: skip current instance's child processes in Windows orphan killer#51684
jkleinsc merged 1 commit into
43-x-yfrom
trop/43-x-y-bp-fix-skip-current-instance-s-child-processes-in-windows-orphan-killer-1779137073971

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 43-x-y backport This is a backport PR semver/none labels May 18, 2026
@jkleinsc jkleinsc merged commit 485ed65 into 43-x-y May 19, 2026
132 of 134 checks passed
@release-clerk

release-clerk Bot commented May 19, 2026

Copy link
Copy Markdown

No Release Notes

@jkleinsc jkleinsc deleted the trop/43-x-y-bp-fix-skip-current-instance-s-child-processes-in-windows-orphan-killer-1779137073971 branch May 19, 2026 20:07
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