-
Notifications
You must be signed in to change notification settings - Fork 74
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
ros2 launch with ComposableNodes doesn't terminate on SIGTERM #223
Comments
I was able to reproduce this with Patch Release 4 of Foxy, but not the latest Rolling release (https://ci.ros2.org/job/ci_packaging_linux/440/). @jacobperron Any idea what might have been fixed? Seems like something that could be back-ported (or released) to Foxy. |
I recall there were a bunch of issues with ComposableNodes and launch that I helped fix since Foxy. I tried to start backporting them but ran into conflicts (there were some major refactors). Although, that being said, this sounds like it may be related to |
@jacobperron Yes, that's the one! I tested on Foxy and that particular commit fixes this issue. |
I believe that this has been fixed in Foxy, so closing this out. If you are still having problems with this, please feel free to reopen. |
This is still broken in Foxy and above, Launch doesn't install a POSIX signal handler for SIGTERM, which means the async function to handle it is never called. Normally that means Launch is terminated immediately leaving an orphaned child ROS node, or if it's run in a container, the signal is ignored completely as it's PID1 and no explicit handler was installed. Instructions to reproduce: and proposed pull-request to fix it: |
Bug report
Required Info:
Steps to reproduce issue
test.launch.py
launch file with composable node:ros2 launch test.launch.py
kill -SIGTERM <pid>
Expected behavior
Launch process is terminated as it happens without composable node.
Actual behavior
Launch process outputs standard termination messages and then hangs.
Additional information
I've observed the same behaviour for ros:foxy and ros:rolling images.
The text was updated successfully, but these errors were encountered: