aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/arcstat
diff options
context:
space:
mode:
authorIsaac Huang <[email protected]>2014-03-10 23:16:33 -0600
committerBrian Behlendorf <[email protected]>2014-03-12 09:00:18 -0700
commit0bb89b6c594259829556f6dea5a89e722f214fd3 (patch)
tree4bc91828586aa68de1842698628a2468be6410ba /cmd/arcstat
parent4e1c9f9c48186f61b5fbe1dd8bc150d48a9b9431 (diff)
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 <[email protected]> Signed-off-by: Prakash Surya <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2182
Diffstat (limited to 'cmd/arcstat')
-rwxr-xr-xcmd/arcstat/arcstat.py2
1 files changed, 1 insertions, 1 deletions
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)