You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The best workaround I came up with is an OnShutdown event handler with an OpaqueFunction to save the value of event.reason but that doesn't seem great.
The text was updated successfully, but these errors were encountered:
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 launch having that behavior as well.
Adjacent to that, it would be interesting to know how roslaunch did it, and if not returning 130 was keeping in line with that precedent or just an oversight.
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.
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: