summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/mountstats/mountstats.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index 9a6ec43..e6a456c 100644
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -612,8 +612,12 @@ try:
nfsstat_command()
elif prog == 'ms-iostat':
iostat_command()
+ sys.stdout.close()
+ sys.stderr.close()
except KeyboardInterrupt:
print('Caught ^C... exiting')
sys.exit(1)
+except IOError:
+ pass
sys.exit(0)