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 <he.huang@intel.com>
Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2182
This commit is contained in:
Isaac Huang 2014-03-10 23:16:33 -06:00 committed by Brian Behlendorf
parent 4e1c9f9c48
commit 0bb89b6c59

View File

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