Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arcstat.py: TypeError: sighandler() takes no arguments (2 given) #2179

Closed
thegreatgazoo opened this issue Mar 11, 2014 · 0 comments
Closed

Comments

@thegreatgazoo
Copy link

When stopping arcstat.py with ^C:
Traceback (most recent call last):
File "./cmd/arcstat/arcstat.py", line 439, in
main()
File "./cmd/arcstat/arcstat.py", line 432, in main
time.sleep(sint)
TypeError: sighandler() takes no arguments (2 given)

ryao pushed a commit to ryao/zfs that referenced this issue Apr 9, 2014
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 openzfs#2179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant