You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2012/11/12 14:16:09 UTC

svn commit: r1408276 - /qpid/proton/trunk/proton-c/src/util.h

Author: tross
Date: Mon Nov 12 13:16:08 2012
New Revision: 1408276

URL: http://svn.apache.org/viewvc?rev=1408276&view=rev
Log:
PROTON-125 - Reverted change to util.h (DIE_IFE macro) as it causes problems for python applications.

Modified:
    qpid/proton/trunk/proton-c/src/util.h

Modified: qpid/proton/trunk/proton-c/src/util.h
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/util.h?rev=1408276&r1=1408275&r2=1408276&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/util.h (original)
+++ qpid/proton/trunk/proton-c/src/util.h Mon Nov 12 13:16:08 2012
@@ -46,17 +46,12 @@ bool pn_env_bool(const char *name);
 
 #define DIE_IFE(EXPR)                                                   \
   do {                                                                  \
-    int __code__;                                                       \
-    do {                                                                \
-      __code__ = 0;                                                     \
-      if ((EXPR) == -1) {                                               \
-        __code__ = errno;                                               \
-        if (__code__ == EINTR) continue;                                \
-        fprintf(stderr, "%s:%d: %s: %s (%d)\n", __FILE__, __LINE__,     \
-                #EXPR, strerror(__code__), __code__);                   \
-        exit(-1);                                                       \
-      }                                                                 \
-    } while (__code__ == EINTR);                                        \
+    if ((EXPR) == -1) {                                                 \
+      int __code__ = errno;                                             \
+      fprintf(stderr, "%s:%d: %s: %s (%d)\n", __FILE__, __LINE__,       \
+              #EXPR, strerror(__code__), __code__);                     \
+      exit(-1);                                                         \
+    }                                                                   \
   } while (0)
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org