You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2013/09/10 02:34:32 UTC
git commit: THRIFT-2178:Thrift generator returns error exit code on
--version Client: compiler Patch: Nate Rosenblum
Updated Branches:
refs/heads/master b0d3c3f9a -> 7096942cf
THRIFT-2178:Thrift generator returns error exit code on --version
Client: compiler
Patch: Nate Rosenblum
Changes exit status of --version call.
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/7096942c
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/7096942c
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/7096942c
Branch: refs/heads/master
Commit: 7096942cfa638333358bfe962fa5cbd31b894827
Parents: b0d3c3f
Author: jfarrell <jf...@apache.org>
Authored: Mon Sep 9 20:33:38 2013 -0400
Committer: jfarrell <jf...@apache.org>
Committed: Mon Sep 9 20:33:38 2013 -0400
----------------------------------------------------------------------
compiler/cpp/src/main.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/7096942c/compiler/cpp/src/main.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index a2350e6..0cefa7e 100755
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -1020,7 +1020,7 @@ int main(int argc, char** argv) {
help();
} else if (strcmp(arg, "-version") == 0) {
version();
- exit(1);
+ exit(0);
} else if (strcmp(arg, "-debug") == 0) {
g_debug = 1;
} else if (strcmp(arg, "-nowarn") == 0) {