cmu-mars / brasscomms

0 stars 1 forks source link

handle SIGTERM #14

Closed ivoysey closed 6 years ago

ivoysey commented 7 years ago

loop to check if ros is running / maybe install a handler. it lags every time you send ROS a sigterm through ctrl-c at the prompt

ivoysey commented 7 years ago

this will probably let us flush the buffers for the log file and close it before we exit, for example, so that if we get SIGTERMed we don't lose information that might help us understand why.

ivoysey commented 7 years ago

Talking about this with Josh just now, it seems likely that the thing that's hanging and causing the brasscomms node to not go down without escalation is Flask.

ivoysey commented 7 years ago

http://flask.pocoo.org/snippets/67/

ivoysey commented 7 years ago

http://answers.ros.org/question/10493/programmatic-way-to-stop-roslaunch/

ivoysey commented 7 years ago

moving this to post-code freeze; i don't see it happening today and it's low priority