aboutsummaryrefslogtreecommitdiff
path: root/tools/ffdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ffdb.py')
-rwxr-xr-xtools/ffdb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ffdb.py b/tools/ffdb.py
index b98814f7..a6bc716b 100755
--- a/tools/ffdb.py
+++ b/tools/ffdb.py
@@ -65,6 +65,9 @@ def read_b2g_response(print_errors_to_console = True):
global read_queue, b2g_socket
try:
read_queue += b2g_socket.recv(65536*2)
+ except KeyboardInterrupt:
+ print ' Aborted by user'
+ sys.exit(1)
except Exception, e:
if e[0] == 57: # Socket is not connected
print 'Error! Failed to receive data from the device: socket is not connected!'