-
Notifications
You must be signed in to change notification settings - Fork 139
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
Return Code not set on SIGINT #780
Comments
I'm going to mark this as backlog. It's not 100% clear to me what the right behavior is here. What did we do in ROS 1? There also may be some funniness with Windows. |
So the longer discussion was that it should probably return 130 on ctrl-c, since that is the error code that represents that an interactive application was interrupted. I don't think anybody would be opposed to Adjacent to that, it would be interesting to know how Additionally, all bets are off with Windows and how it handles interrupts and return codes, so it would be somewhat worthwhile to try to make the behaviors consistent. |
Sad to report that |
Bug report
Steps to reproduce issue
Expected behavior
sleep 5
normally, it has return code 0.Actual behavior
In actuality, it also returns 0.
Additional information
The return code for launch is set on exceptions but the sigint handler does not set the return code and shutsdown the processes "normally".
The best workaround I came up with is an
OnShutdown
event handler with anOpaqueFunction
to save the value ofevent.reason
but that doesn't seem great.The text was updated successfully, but these errors were encountered: