THRIFT-1689: don't exit(-1) in TNonblockingServer
authorHenrique Mendonca <henrique@apache.org>
Thu, 20 Sep 2012 13:19:55 +0000 (13:19 +0000)
committerHenrique Mendonca <henrique@apache.org>
Thu, 20 Sep 2012 13:19:55 +0000 (13:19 +0000)
Client: c++
Patch: Brian Fallik

use standard exit(1) instead

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1388019 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/thrift/server/TNonblockingServer.cpp

index cac7a0a..25fe1f2 100644 (file)
@@ -360,7 +360,7 @@ class TNonblockingServer::TConnection::Task: public Runnable {
       GlobalOutput.printf("TNonblockingServer: client died: %s", ttx.what());
     } catch (const bad_alloc&) {
       GlobalOutput("TNonblockingServer: caught bad_alloc exception.");
-      exit(-1);
+      exit(1);
     } catch (const std::exception& x) {
       GlobalOutput.printf("TNonblockingServer: process() exception: %s: %s",
                           typeid(x).name(), x.what());