aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-09-03 13:25:22 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-09-03 13:46:54 +0200
commite273a29a8ce3b7928d68c412ea1698393756ab33 (patch)
tree6dac09f018f989f9a43e2cc26881002b4b1c7466 /netlib
parent69b770469e13079f01ea61fba0a71a0ca9d3fc37 (diff)
downloadmitmproxy-e273a29a8ce3b7928d68c412ea1698393756ab33.tar.gz
mitmproxy-e273a29a8ce3b7928d68c412ea1698393756ab33.tar.bz2
mitmproxy-e273a29a8ce3b7928d68c412ea1698393756ab33.zip
http2: improve kill and cleanup threads
Diffstat (limited to 'netlib')
-rw-r--r--netlib/debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/debug.py b/netlib/debug.py
index 29c7f655..f9c700de 100644
--- a/netlib/debug.py
+++ b/netlib/debug.py
@@ -37,7 +37,7 @@ def sysinfo():
return "\n".join(data)
-def dump_info(sig, frm, file=sys.stdout): # pragma: no cover
+def dump_info(signal=None, frame=None, file=sys.stdout): # pragma: no cover
print("****************************************************", file=file)
print("Summary", file=file)
print("=======", file=file)
@@ -81,7 +81,7 @@ def dump_info(sig, frm, file=sys.stdout): # pragma: no cover
print("****************************************************", file=file)
-def dump_stacks(signal, frame, file=sys.stdout):
+def dump_stacks(signal=None, frame=None, file=sys.stdout):
id2name = dict([(th.ident, th.name) for th in threading.enumerate()])
code = []
for threadId, stack in sys._current_frames().items():