From: Henrique Mendonca Date: Thu, 20 Sep 2012 13:19:55 +0000 (+0000) Subject: THRIFT-1689: don't exit(-1) in TNonblockingServer X-Git-Tag: 0.9.1~307 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=962b35309d33af60db65cac928f0a8411c6dc06d;p=common%2Fthrift.git THRIFT-1689: don't exit(-1) in TNonblockingServer 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 --- diff --git a/lib/cpp/src/thrift/server/TNonblockingServer.cpp b/lib/cpp/src/thrift/server/TNonblockingServer.cpp index cac7a0a1..25fe1f28 100644 --- a/lib/cpp/src/thrift/server/TNonblockingServer.cpp +++ b/lib/cpp/src/thrift/server/TNonblockingServer.cpp @@ -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());