commit | 593339d8db2e2d9dd2eabca2b65638b975a813b5 | [log] [tgz] |
---|---|---|
author | Gary Lin <glin@suse.com> | Wed Feb 27 16:54:44 2019 +0800 |
committer | Gary Lin <glin@suse.com> | Mon Mar 04 11:31:44 2019 +0800 |
tree | 720d62f1e92b31f6f56f6f53972ac81b198dd7a6 | |
parent | bb65bea69a6486efd50dd57331eed0f6435b2358 [diff] [blame] |
examples/tracing: Handle KeyboardInterrupt Signed-off-by: Gary Lin <glin@suse.com>
diff --git a/examples/tracing/tcpv4connect.py b/examples/tracing/tcpv4connect.py index 81385e8..26d9376 100755 --- a/examples/tracing/tcpv4connect.py +++ b/examples/tracing/tcpv4connect.py
@@ -94,6 +94,8 @@ except ValueError: # Ignore messages from other tracers continue + except KeyboardInterrupt: + exit() # Ignore messages from other tracers if _tag != "trace_tcp4connect":