Permalink
Browse files

Merge pull request #1 from alexjurkiewicz/ctrlc

Better ctrl-c handling
  • Loading branch information...
2 parents 358cf42 + 387f942 commit 1e90bb4c49cdffb79e757f058a878129cc39911d @siebenmann siebenmann committed Sep 27, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 mxiostat.py
View
@@ -633,7 +633,11 @@ def process(args):
sys.exit(1)
if __name__ == "__main__":
- process(sys.argv[1:])
+ try:
+ process(sys.argv[1:])
+ except KeyboardInterrupt:
+ print
+ sys.exit(0)
#
# -----

0 comments on commit 1e90bb4

Please sign in to comment.