]> git.proxmox.com Git - mirror_zfs.git/commitdiff
sighandler() should take 2 arguments
authorIsaac Huang <he.huang@intel.com>
Tue, 11 Mar 2014 05:16:33 +0000 (23:16 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Mar 2014 16:00:18 +0000 (09:00 -0700)
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 <he.huang@intel.com>
Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2182

cmd/arcstat/arcstat.py

index 5a0912853852f59d329d9d2bac9522fd5d4634f8..41bf61b73b247270f7c4dfdb4d8e0829c36ca131 100755 (executable)
@@ -413,7 +413,7 @@ def calculate():
         v["l2bytes"] = d["l2_read_bytes"] / sint
 
 
-def sighandler():
+def sighandler(foo, bar):
     sys.exit(0)