Open lcoudeville opened 6 years ago
Thank you Snevzor for your strong support I really appreciate this a lot. #staystrong #prayforgatt-python
@lcoudeville Thanks for your PR! I understand that you want to tun the DeviceManager in a separate thread, however I still have troubles understanding the implications of this PR. Can you please describe in more details:
KeyboardInterrupt
being raised?
I discovered that it was impossible to set a signal handler for SIGINT in combination with a running gatt.DeviceManager.
Code to reproduce (pseudocode):
This code raises a
KeyboardInterrupt
exception whenSIGINT
was received which is quite unexpected as a signal handler forSIGINT
was set.Also fix subissue related to CTRL + C, which is a
SIGINT
in fact, of https://github.com/getsenic/gatt-python/issues/5#issuecomment-313362380 . The fix in my pull request was retrieved from https://stackoverflow.com/a/47947420 .