-
Notifications
You must be signed in to change notification settings - Fork 11
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
Agent: sigterm children #36
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remi-espie
force-pushed
the
feat/sigterm_children
branch
from
May 1, 2024 11:12
ff67591
to
577670e
Compare
mfernd
reviewed
May 1, 2024
remi-espie
force-pushed
the
feat/sigterm_children
branch
3 times, most recently
from
May 2, 2024 16:13
b0fe690
to
f91d524
Compare
…ception Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr>
Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr>
…be non blocking Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr>
Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr>
Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr>
remi-espie
force-pushed
the
feat/sigterm_children
branch
from
May 3, 2024 10:13
3bfd951
to
4f61ad8
Compare
mfernd
approved these changes
May 3, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good now!
MurielParaire
pushed a commit
to MurielParaire/cloudlet
that referenced
this pull request
May 3, 2024
* feat: child processes are now gracefully sigterm-ed on kill signal reception Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * chore: merge from main Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * fix: changed `std::process::Command` to `tokio::process::Command` to be non blocking Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * chore: cargo fmt Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * refactor: use async_trait instead of Pin<Box<Future<>>> Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr> --------- Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr> Co-authored-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr> Signed-off-by: Muriel Paraire <72733662+MurielParaire@users.noreply.github.com>
MurielParaire
pushed a commit
to MurielParaire/cloudlet
that referenced
this pull request
May 3, 2024
* feat: child processes are now gracefully sigterm-ed on kill signal reception Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * chore: merge from main Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * fix: changed `std::process::Command` to `tokio::process::Command` to be non blocking Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * chore: cargo fmt Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> * refactor: use async_trait instead of Pin<Box<Future<>>> Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr> --------- Signed-off-by: ESPIE <remi.espie@etu.umontpellier.fr> Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr> Co-authored-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr> Signed-off-by: Muriel Paraire <72733662+MurielParaire@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR now handle better the
signal
received by the vmm to gracefully shut down children processes by sending them a sigterm and waiting for them before exiting the process.More type of signal could be interpreted and sent easily to the children processes.