UrDHT / PyUrDHT

Python reference implementation
11 stars 3 forks source link

keyboard interrupts not handled #43

Open mmcd opened 9 years ago

mmcd commented 9 years ago

Interrupt should probably be caught and handled gracefully.

^C Exception ignored in: <module 'threading' from '/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py'> Traceback (most recent call last): File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py", line 1294, in _shutdown Process Process-1: Traceback (most recent call last): t.join() File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py", line 1060, in join self._wait_for_tstate_lock() File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py", line 1076, in _wait_for_tstate_lock File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/multiprocessing/process.py", line 254, in _bootstrap self.run() File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/multiprocessing/process.py", line 93, in run self._target(_self._args, *_self._kwargs) elif lock.acquire(block, timeout): KeyboardInterrupt File "/Users/michael/Git/PyUrDHT/websocketProxy.py", line 62, in main asyncio.get_event_loop().run_forever() Noesis:PyUrDHT michael$