Skip to content

throw exception when rmw functions return null - #43

Merged
dirk-thomas merged 1 commit into
masterfrom
throw_if_rmw_fails
Jun 19, 2015
Merged

dirk-thomas merged 1 commit into
masterfrom
throw_if_rmw_fails

Conversation

@dirk-thomas

Copy link
Copy Markdown
Member

If any rmw function return null which indicates an error rclcpp now throws a runtime_error.

Please review.

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Jun 18, 2015
@dirk-thomas dirk-thomas self-assigned this Jun 18, 2015
@wjwwood

wjwwood commented Jun 18, 2015

Copy link
Copy Markdown
Member

+1

1 similar comment
@esteve

esteve commented Jun 18, 2015

Copy link
Copy Markdown
Member

+1

dirk-thomas added a commit that referenced this pull request Jun 19, 2015
throw exception when rmw functions return null
@dirk-thomas
dirk-thomas merged commit fa1f11e into master Jun 19, 2015
@dirk-thomas
dirk-thomas deleted the throw_if_rmw_fails branch June 19, 2015 00:39
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 19, 2015
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this pull request Aug 5, 2022
* Use directory instead of file to reference bag files

* Extract process execution helper from e2e tests

* Prefix autogenerated bag name with `rosbag2_`

* ros2GH-109 Improve e2e-test process handling on linux

- Use SIGINT instead of SIGTERM which is the correct equivalent to
  pressing Ctrl-C within a shell
- Use exec instead of system inside the forked test child process.
- Check the return code of the child after the waitpid instead of
  after the call to system.
Using system inside a child process is unnecessary as system forks
again. Whether the actual "ros2 bag" process was put in the same
process group seemed to be shell dependent. Exec avoids these issues.
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.

3 participants