]> granicus.if.org Git - zfs/commit
sighandler() should take 2 arguments
authorIsaac Huang <he.huang@intel.com>
Tue, 11 Mar 2014 23:05:46 +0000 (17:05 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Mar 2014 18:03:46 +0000 (11:03 -0700)
commit312f82ce65f37ed60f440194623fe38cdb1f601d
tree4be699084ddba70eaf2b1a59756011df6ed05fe6
parentd9119bd66df789cbd43d0f6aef4cd43b6baba58c
sighandler() should take 2 arguments

Stopping arcstat.py with ^C always ends up with error:
TypeError: sighandler() takes no arguments (2 given)

Since no special signal handling was done in sighandler(),
it's simpler to just set SIGINT handler to SIG_DFL, which
terminates the script.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Isaac Huang <he.huang@intel.com>
Closes #2179
cmd/arcstat/arcstat.py