Skip to content
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

hold cleanup until signal on procKilledCh #575

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sethbrasile
Copy link

@sethbrasile sethbrasile commented Apr 30, 2024

Fixes #534 on my 2021 M1 Pro MBP - Sonoma 14.4.1

#542 got it to a solid starting point so this was pretty simple? Thanks to whatever @ghost wrote that.

Hopefully this fixes for everyone on a Mac? 🤞🏻


There's still a downside: When you reach a non zero exit code, you are trapped and have to kill the pid via external means. It does at least let you ctrl+c under normal circumstances.

it seems like `os.Exit(state.ExitCode())` belongs here... but unclear on intent of `e.config.Build.Rerun`

This at least lets you ctrl+c out of error condition instead of killing pid via external means.
@sethbrasile sethbrasile marked this pull request as draft April 30, 2024 06:49
@sethbrasile sethbrasile marked this pull request as ready for review May 1, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement graceful shutdown on Mac
1 participant