From 0bb89b6c594259829556f6dea5a89e722f214fd3 Mon Sep 17 00:00:00 2001 From: Isaac Huang Date: Mon, 10 Mar 2014 23:16:33 -0600 Subject: [PATCH] sighandler() should take 2 arguments Stopping arcstat.py with ^C always ends up with error: TypeError: sighandler() takes no arguments (2 given) This patch corrects the error by updating the signal handler to take the correct number of arguments. Signed-off-by: Isaac Huang Signed-off-by: Prakash Surya Signed-off-by: Brian Behlendorf Closes #2182 --- cmd/arcstat/arcstat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/arcstat/arcstat.py b/cmd/arcstat/arcstat.py index 5a0912853..41bf61b73 100755 --- a/cmd/arcstat/arcstat.py +++ b/cmd/arcstat/arcstat.py @@ -413,7 +413,7 @@ def calculate(): v["l2bytes"] = d["l2_read_bytes"] / sint -def sighandler(): +def sighandler(foo, bar): sys.exit(0) -- 2.40.0