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

add missing error handling and cleanup #315

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

dirk-thomas
Copy link
Member

Just found these while debugging something else.

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Apr 17, 2019
@dirk-thomas dirk-thomas self-assigned this Apr 17, 2019
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
@dirk-thomas dirk-thomas merged commit dcf1971 into master Apr 17, 2019
@dirk-thomas dirk-thomas deleted the cleanup-in-error-handling branch April 17, 2019 18:45
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Apr 17, 2019
sloretz added a commit that referenced this pull request Apr 19, 2019
* Every executor gets its own SIGINT guard condition

Moves signal handling code to _rclpy_signal_handler
Every executor adds a guard condition to a global list
SIGINT signal handler triggers all guard conditions in global list

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* _sigint_gc robust to shutdown() called twice

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Remove redundant comments

Comments say the same thing twice.
It only needs to be said once.
Remove extra comments so the same thing is not repeated.

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Split loop for readability

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* g_guard_conditions atomic variable

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Use rclutils_atomics macros

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Call original handler before losing reference to it

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* remove extra unnecessary assignment

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* g_guard_conditions is a struct on windows

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Rename action state transitions (#300)

* Rename action state transitions

Now using active verbs as described in the design doc:

http://design.ros2.org/articles/actions.html#goal-states

Connects to ros2/rcl#399.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* add missing error handling and cleanup (#315)

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>

* Don't store sigint_gc address

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* remove redundant conditional

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Every executor gets its own SIGINT guard condition

Moves signal handling code to _rclpy_signal_handler
Every executor adds a guard condition to a global list
SIGINT signal handler triggers all guard conditions in global list

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* _sigint_gc robust to shutdown() called twice

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Remove redundant comments

Comments say the same thing twice.
It only needs to be said once.
Remove extra comments so the same thing is not repeated.

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Split loop for readability

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* g_guard_conditions atomic variable

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Use rclutils_atomics macros

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Call original handler before losing reference to it

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* remove extra unnecessary assignment

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* g_guard_conditions is a struct on windows

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* Don't store sigint_gc address

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* remove redundant conditional

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
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.

2 participants