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

Prefer sending signals to kernel process group #743

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

kevin-bates
Copy link
Member

Per this comment in #104, we should restore the behavior that signaling the process group is preferred over the Popen kill() and terminate() methods (which essentially signal the process). This pull request updates the LocalProvisioner to send SIGKILL/SIGTERM to the process group, prior to falling back to Popen kill()/terminate(), respectively.

As also noted in the comment, this functionality is masked by the fact that we still prefer a message-based shutdown unless the message-based shutdown fails or an auto-restart event occurs (when the kernel process can no longer be tracked), in which case the "immediate" form of restart occurs (using the signal-based approach).

@kevin-bates kevin-bates added the bug label Feb 3, 2022
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

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.

2 participants