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

Also handle SIGTERM gracefully #2747

Merged
merged 4 commits into from
Feb 1, 2025
Merged

Also handle SIGTERM gracefully #2747

merged 4 commits into from
Feb 1, 2025

Conversation

erlingrj
Copy link
Contributor

🦟 Bug fix

Fixes #2738

Summary

As proposed by @azeey, in addition to SIGINT, also catch SIGTERM, which is the default signal sent when trying to stop a process externally.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Copy link
Contributor

@azeey azeey 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 for the contribution. Do you mind fixing the signoff (DCO) issue? Otherwise, this is looks good to me.

Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

There also some whitespace issues caught by the linter

src/cmd/cmdsim.rb.in Outdated Show resolved Hide resolved
src/cmd/cmdsim.rb.in Outdated Show resolved Hide resolved
erlingrj and others added 3 commits January 30, 2025 17:37
Signed-off-by: Erling Rennemo Jellum
Signed-off-by: erlingrj <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: erling <[email protected]>
Signed-off-by: erlingrj <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: erling <[email protected]>
Signed-off-by: erlingrj <[email protected]>
@azeey
Copy link
Contributor

azeey commented Feb 1, 2025

Going to merge without windows CI since we keep losing the windows nodes and this PR is low risk.

@azeey azeey merged commit 13bf5be into gazebosim:gz-sim9 Feb 1, 2025
10 of 11 checks passed
@azeey
Copy link
Contributor

azeey commented Feb 1, 2025

@Mergifyio backport gz-sim8 ign-gazebo6

Copy link
Contributor

mergify bot commented Feb 1, 2025

backport gz-sim8 ign-gazebo6

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Feb 1, 2025
Signed-off-by: Erling Rennemo Jellum
Signed-off-by: erlingrj <[email protected]>
Signed-off-by: erling <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
(cherry picked from commit 13bf5be)
mergify bot pushed a commit that referenced this pull request Feb 1, 2025
Signed-off-by: Erling Rennemo Jellum
Signed-off-by: erlingrj <[email protected]>
Signed-off-by: erling <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
(cherry picked from commit 13bf5be)

# Conflicts:
#	src/cmd/cmdgazebo.rb.in
azeey pushed a commit that referenced this pull request Feb 1, 2025
Signed-off-by: Erling Rennemo Jellum
Signed-off-by: erlingrj <[email protected]>
Signed-off-by: erling <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
(cherry picked from commit 13bf5be)
azeey added a commit that referenced this pull request Feb 1, 2025
Signed-off-by: Erling Rennemo Jellum
Signed-off-by: erlingrj <[email protected]>
Signed-off-by: erling <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
(cherry picked from commit 13bf5be)
Signed-off-by: Addisu Z. Taddese <[email protected]>
azeey pushed a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Erling Rennemo Jellum
Signed-off-by: erlingrj <[email protected]>
Signed-off-by: erling <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
(cherry picked from commit 13bf5be)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Terminating gazebo leaves many zombie processes
3 participants