From b99d70b8b832163680699186fb890e5d4ceee8d8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 7 May 2014 01:18:19 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/util.c | 2 +- src/mds-server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libmdsserver/util.c b/src/libmdsserver/util.c index b8b61d3..5780176 100644 --- a/src/libmdsserver/util.c +++ b/src/libmdsserver/util.c @@ -133,7 +133,7 @@ size_t send_message(int socket, const char* message, size_t length) if (block_size == 0) return sent; } - else if (errno != EINTR) + else return sent; } else diff --git a/src/mds-server.c b/src/mds-server.c index 08bd47e..f5e28ad 100644 --- a/src/mds-server.c +++ b/src/mds-server.c @@ -650,7 +650,7 @@ void message_received(client_t* client) /* TODO */ /* Send message. */ with_mutex(client->mutex, - if (send_message(client->socket_fd, msgbuf, n) < n) /* TODO support EINTR*/ + if (send_message(client->socket_fd, msgbuf, n) < n) /* TODO support EINTR */ perror(*argv); ); free(msgbuf); -- cgit v1.2.3-70-g09d2