cpp: Exit TNonBlockingServer on memmory allocation failure
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:27 +0000 (05:19 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:27 +0000 (05:19 +0000)
commit28e88ecac1cab801112587068ee4fbc6de457e49
tree03bf1cc43953d72dc46fc7f2308aaa435926e61b
parent01fe15322f55a9aec5de6807fe0d4c54db7d79f6
cpp: Exit TNonBlockingServer on memmory allocation failure

setrlimit causes bad_alloc exceptions, but undefined behavior occurs if
we don't exit.  It is not typical for libraries to call exit, but it is
not clear what other behavior is possible.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920665 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/server/TNonblockingServer.cpp