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

Graceful shutdown sub processes. #32

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Graceful shutdown sub processes. #32

merged 2 commits into from
Oct 25, 2023

Conversation

fujiwara
Copy link
Owner

Go 1.20 can customize behavior when the context is canceled that is passed to exec.CommandContext.

  • At first, send SIGTERM.
  • If the process is not terminated, send SIGKILL after 5 seconds.

@fujiwara fujiwara merged commit 281d33c into main Oct 25, 2023
2 checks passed
@fujiwara fujiwara deleted the term-subprocess branch October 25, 2023 00:42
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.

None yet

1 participant