-
Notifications
You must be signed in to change notification settings - Fork 146
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
Failure to quit ros2 launch via SIGINT #495
Comments
This is equivalent to #473. It was addressed in Rolling by allowing non-interactive In the meantime, sending SIGINT to the process group should do. |
This problem was already fixed by the PRs mentioned above. A backport to foxy was briefly discussed in #475 is now proposed in #500 and in ros2/launch_ros#225. |
Thanks @hidmic! |
Sadly, this does not seem to be fixed by the backport. I have now installed version Adding
In words, However, specifically
Any ideas on what's happening here? |
It appears to be hanging when emitting an event from within the signal handler. Might be related to #476. |
This would be fixed by #511 |
I believe this has been fixed since. Closing. |
@hidmic Indeed: It works locally on my setup and also in some different containers in with some other code, so it seems to be fixed once and for all. |
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
The node is gracefully shut down (in probably way less than a second after issuing the SIGINT) and the exit code is zero.
Actual behavior
The node fails to exit and must be killed, leaving an orphan process and taking quite some time:
Also, why is the exit code zero in this case? I could not find any documentation on the exit codes.
Additional information
Using the launch Python API causes the same problem as the Popen approach above.
When calling the launch file via
ros2 launch example_launch_common.py -d
from the bash console and exiting viaCtrl+C
, everything works fine. This means that in such a case, the node reacts to the shutdown signal, it shuts down immediately and the exit code of the launch command is zero.The text was updated successfully, but these errors were encountered: