Add SIGTERM signal handler to also call cleanup
authorJack Peel <jack.peel@synapse.com>
Sat, 6 Apr 2013 00:55:19 +0000 (17:55 -0700)
committerJack Peel <jack.peel@synapse.com>
Sat, 6 Apr 2013 00:55:19 +0000 (17:55 -0700)
commit04c142c69b0075a2004896d7046fe78fd015a02c
tree87d88f7ef4e823e73eee1c06b98e4ec5ceb83e53
parent55b9ecd36c35669510b70cfaac53098e8a786587
Add SIGTERM signal handler to also call cleanup
When stopping st-util under Eclipse as an external tool the st-util
receives a SIGTERM signal, and would not return the device to
usb mass storage mode.  This change now calls cleanup in the SIGTERM handler too!!
gdbserver/gdb-server.c