Merge.
author <brian@gir-3.local> <>
Sat, 15 Nov 2008 17:07:50 +0000 (12:07 -0500)
committer <brian@gir-3.local> <>
Sat, 15 Nov 2008 17:07:50 +0000 (12:07 -0500)
1  2 
libmemcached/memcached_io.c

index 735a8d5312b625636c80a58e69bc83328fc0589e,7ed2a403f58563f375c8cd04424308a4de86e0b3..0afcc29eaa4756670c25fa525b48d2fd93049fc1
@@@ -112,6 -112,7 +112,7 @@@ ssize_t memcached_io_read(memcached_ser
            switch (errno)
            {
            case EAGAIN:
+           case EINTR: 
              {
                memcached_return rc;
  
@@@ -219,17 -220,13 +220,17 @@@ ssize_t memcached_io_write(memcached_se
  memcached_return memcached_io_close(memcached_server_st *ptr)
  {
    int r;
 -  /* in case of death shutdown to avoid blocking at close() */
  
 +  if (ptr->fd == -1)
 +    return MEMCACHED_SUCCESS;
 +
 +  /* in case of death shutdown to avoid blocking at close() */
    r= shutdown(ptr->fd, SHUT_RDWR);
  
  #ifdef HAVE_DEBUG
    if (r && errno != ENOTCONN)
    {
 +    WATCHPOINT_NUMBER(ptr->fd);
      WATCHPOINT_ERRNO(errno);
      WATCHPOINT_ASSERT(errno);
    }