diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-11-24 12:00:55 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-11-24 12:00:55 -0800 |
commit | 60192694d82b0f6b34d3a8be846e0f81893e8a9b (patch) | |
tree | 96fe55b42a79e0506c159e309d16fd6318d915cc /src/cli_bin.cpp | |
parent | 6c744b0ba23a616f00d63e12daf10a4fcd187cfa (diff) | |
download | vyatta-cfg-60192694d82b0f6b34d3a8be846e0f81893e8a9b.tar.gz vyatta-cfg-60192694d82b0f6b34d3a8be846e0f81893e8a9b.zip |
use exit code 1 to ease init script usage
Diffstat (limited to 'src/cli_bin.cpp')
-rw-r--r-- | src/cli_bin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli_bin.cpp b/src/cli_bin.cpp index 5823c02..9528277 100644 --- a/src/cli_bin.cpp +++ b/src/cli_bin.cpp @@ -206,7 +206,7 @@ main(int argc, char **argv) } if (op_idx == -1) { printf("Invalid operation\n"); - exit(-1); + exit(1); } if (initialize_output(OP_Str) == -1) { |