ちょっと使えるかどうか調べた時に思ったこと。 libmemcached/connect.c /* libmemcached will always use nonblocking IO to avoid write deadlocks */ int flags; do flags= fcntl(ptr->fd, F_GETFL, 0); while (flags == -1 && (errno == EINTR || errno == EAGAIN)); unlikely (flags == -1) { return MEMCACHED_CONNECTION_FAILURE; } else if ((flags & O_NONBLOCK) == 0) { int rval; do rval= fcntl(ptr->fd, F_SETFL, flags | O_NONBLOCK); whil