Cancelling git on macOS can strand its child processes at exit #135

Open
opened 2026-10-25 06:31:10 -05:00 by ethan-hann · 0 comments
Owner

On macOS SavePoint still ends a cancelled git with .NET Process.Kill(entireProcessTree), which stops the root, kills it and then recurses into its children. If SavePoint exits after the root is gone but before the recursion ends, the exit-time kill no longer finds the root and its children (for example pack-objects under a repack) are left running under launchd. Linux now walks /proc and kills the root last, so the exit-time kill always finds the whole tree. Give macOS the same root-last walk (sysctl KERN_PROC or proc_listchildpids) when a Mac is available to test on.

On macOS SavePoint still ends a cancelled git with .NET Process.Kill(entireProcessTree), which stops the root, kills it and then recurses into its children. If SavePoint exits after the root is gone but before the recursion ends, the exit-time kill no longer finds the root and its children (for example pack-objects under a repack) are left running under launchd. Linux now walks /proc and kills the root last, so the exit-time kill always finds the whole tree. Give macOS the same root-last walk (sysctl KERN_PROC or proc_listchildpids) when a Mac is available to test on.
ethan-hann added this to the Later milestone 2026-10-25 06:31:10 -05:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ethan-hann/SavePoint#135
No description provided.