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 */