THRIFT: ADITYASLOP
authorboz <dev-null@apache.org>
Thu, 31 May 2007 23:38:37 +0000 (23:38 +0000)
committerboz <dev-null@apache.org>
Thu, 31 May 2007 23:38:37 +0000 (23:38 +0000)
Summary: thrift didn't compile

Reviewed By: marc

Test Plan: thrift compiles

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

lib/cpp/src/transport/TServerSocket.cpp

index 22346bd..f341a2b 100644 (file)
@@ -182,7 +182,7 @@ shared_ptr<TTransport> TServerSocket::acceptImpl() {
 
     if (ret < 0) {
       // error cases
-      if (error == EINTR && (numEintrs++ < maxEintrs)) {
+      if (errno == EINTR && (numEintrs++ < maxEintrs)) {
         // EINTR needs to be handled manually and we can tolerate 
         // a certain number
         continue;