Skip to content

Kill now kills all the childrens in the process-tree on MacOS and Windows. #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Apr 29, 2025

The Kill method now kills the process group on MacOS (in a similar way we did for Linux) and Windows.

The Windows parts are a bit convoluted but seem to work nicely.

@cmaglie cmaglie self-assigned this Apr 29, 2025
@cmaglie cmaglie changed the title Improved process Kill method. Kill now kill the whole process-tree on MacOS and Windows. Apr 29, 2025
@cmaglie cmaglie requested a review from a team April 30, 2025 07:03
@cmaglie cmaglie marked this pull request as ready for review April 30, 2025 07:03
Copy link

@lucarin91 lucarin91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also update this comment. it seems that now the same trick is also used for mac https://github.com/arduino/go-paths-helper/blob/a79cedacd25545f13f128af1e5b077a205d8fc61/process.go#L59C2-L59C37

@cmaglie cmaglie force-pushed the kill_process_darwin branch from a79ceda to 0ee00d8 Compare April 30, 2025 10:38
@cmaglie cmaglie force-pushed the kill_process_darwin branch from 0ee00d8 to 4391f08 Compare April 30, 2025 10:40
@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 30, 2025
@cmaglie cmaglie changed the title Kill now kill the whole process-tree on MacOS and Windows. Kill now kills all the childrens in the process-tree on MacOS and Windows. Apr 30, 2025
@cmaglie cmaglie merged commit 08cf9b4 into master Apr 30, 2025
5 of 7 checks passed
@cmaglie cmaglie deleted the kill_process_darwin branch April 30, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants