diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
commit | 0612e84b3cec508c3d62d38c4e2682c85cc808bb (patch) | |
tree | db777e38f9c528127e195ad01da6a3088dc6da4a /src/memcached.c | |
parent | ae3eb4dfd787052bebc732c3e37b56f0800e1aa2 (diff) | |
download | rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.tar.gz rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.zip |
* Fix strict aliasing while compiling with optimization
* Fix tanhl detection for platforms that have not implementation of it
* Remove several compile warnings
Diffstat (limited to 'src/memcached.c')
-rw-r--r-- | src/memcached.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/memcached.c b/src/memcached.c index fc7152940..77078aa06 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -139,7 +139,9 @@ write_handler (int fd, short what, memcached_ctx_t * ctx) iov[1].iov_len = ctx->param->bufsize - ctx->param->bufpos; iov[2].iov_base = CRLF; iov[2].iov_len = sizeof (CRLF) - 1; - writev (ctx->sock, iov, 3); + if (writev (ctx->sock, iov, 3) == -1) { + memc_log (ctx, __LINE__, "memc_write: writev failed: %s", strerror (errno)); + } } event_del (&ctx->mem_ev); event_set (&ctx->mem_ev, ctx->sock, EV_READ | EV_PERSIST | EV_TIMEOUT, socket_callback, (void *)ctx); |