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

Join with the controller manager's executor thread on exit #79

Merged
merged 4 commits into from
May 31, 2021

Conversation

kbogert
Copy link
Contributor

@kbogert kbogert commented May 28, 2021

This prevents a SIGABRT in gzserver when stopping gazebo due to the executor thread being aborted, which triggers a core dump. This patch instead ensures a clean exit, since rclcpp::ok() returns true while gazebo is shutting down.

Note: I'm not sure why the controller manager's node must be removed from the executor, but otherwise the join() will remain blocked and prevent gzserver from stopping even with a SIGTERM.

Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

❤️

@ahcorde ahcorde merged commit a33ea2e into ros-controls:master May 31, 2021
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

2 participants