Skip to content

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

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

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

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:44
@trop trop Bot added 40-x-y backport This is a backport PR semver/none labels May 18, 2026
@ckerr ckerr merged commit 23d8ece into 40-x-y May 19, 2026
105 of 112 checks passed
@ckerr ckerr deleted the trop/40-x-y-bp-fix-skip-current-instance-s-child-processes-in-windows-orphan-killer-1779137071237 branch May 19, 2026 01:18
@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