if (ptr->root->flags.no_block == false)
timeout= -1;
- while (1)
+ size_t loop_max= 5;
+ while (--loop_max)
{
error= poll(&fds, 1, timeout);
return MEMCACHED_SUCCESS;
case 0:
return MEMCACHED_TIMEOUT;
+#if TARGET_OS_LINUX
case ERESTART:
+#endif
case EINTR:
continue;
default:
{
case EAGAIN:
case EINTR:
+#if TARGET_OS_LINUX
case ERESTART:
+#endif
if ((rc= io_wait(ptr, MEM_READ)) == MEMCACHED_SUCCESS)
continue;
/* fall through */
# included from Top Level Makefile.am
# All paths should be given relative to the root
-EXTRA_DIST += \
- support/libmemcached.spec \
- support/libmemcached-fc.spec.in \
- support/set_benchmark.sh
+EXTRA_DIST+= \
+ support/libmemcached.spec \
+ support/libmemcached-fc.spec.in \
+ support/set_benchmark.sh
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = support/libmemcached.pc