From e169749fc0b87904cb48e8cca0c87501eb46ebac Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Wed, 5 Oct 2016 08:41:26 -0700 Subject: Correct exit code for dbufstat -v and arcstat -v Both scripts were returning an error code of 1 when using the -v argument. -v should exit with an error code of 0. Signed-off-by: Giuseppe Di Natale --- cmd/arcstat/arcstat.py | 2 +- cmd/dbufstat/dbufstat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/arcstat/arcstat.py b/cmd/arcstat/arcstat.py index 416120795..b743fd8bc 100755 --- a/cmd/arcstat/arcstat.py +++ b/cmd/arcstat/arcstat.py @@ -122,7 +122,7 @@ def detailed_usage(): sys.stderr.write("%11s : %s\n" % (key, cols[key][2])) sys.stderr.write("\n") - sys.exit(1) + sys.exit(0) def usage(): diff --git a/cmd/dbufstat/dbufstat.py b/cmd/dbufstat/dbufstat.py index 0bda1524e..ceb0160cd 100755 --- a/cmd/dbufstat/dbufstat.py +++ b/cmd/dbufstat/dbufstat.py @@ -143,7 +143,7 @@ def detailed_usage(): sys.stderr.write("%11s : %s\n" % (key, cols[key][2])) sys.stderr.write("\n") - sys.exit(1) + sys.exit(0) def usage(): -- cgit v1.2.3