Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Better ctrl-c handling #1

Merged
merged 1 commit into from

2 participants

Alex Jurkiewicz Chris Siebenmann
Alex Jurkiewicz

What it says on the tin.

Chris Siebenmann siebenmann merged commit 1e90bb4 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 27, 2011
  1. Better ctrl-c handling

    Alex Jurkiewicz authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 mxiostat.py
6 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)
#
# -----
Something went wrong with that request. Please try again.