]> granicus.if.org Git - zfs/blobdiff - cmd/arcstat/arcstat.py
sighandler() should take 2 arguments
[zfs] / cmd / arcstat / arcstat.py
index 5a0912853852f59d329d9d2bac9522fd5d4634f8..ba792358c68e38a3d74114b5db2b20f1303c1f56 100755 (executable)
@@ -51,7 +51,7 @@ import re
 import copy
 
 from decimal import Decimal
-from signal import signal, SIGINT
+from signal import signal, SIGINT, SIG_DFL
 
 cols = {
     # HDR:        [Size, Scale, Description]
@@ -413,10 +413,6 @@ def calculate():
         v["l2bytes"] = d["l2_read_bytes"] / sint
 
 
-def sighandler():
-    sys.exit(0)
-
-
 def main():
     global sint
     global count
@@ -429,7 +425,7 @@ def main():
     if count > 0:
         count_flag = 1
 
-    signal(SIGINT, sighandler)
+    signal(SIGINT, SIG_DFL)
     while True:
         if i == 0:
             print_header()