From 6c2873ba2bedf239fcfe6587702b1f34691cb405 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 2 Aug 2014 20:46:31 +0200 Subject: mds-registry: notify client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mds-registry/registry.c') diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c index b05d1a1..80bfbe3 100644 --- a/src/mds-registry/registry.c +++ b/src/mds-registry/registry.c @@ -385,10 +385,10 @@ static int list_registry(const char* recv_client_id, const char* recv_message_id /* Construct message headers. */ sprintf(send_buffer + ptr, "To: %s\nIn response to: %s\nMessage ID: %" PRIi32 "\nLength: %" PRIu64 "\n\n", - recv_message_id, recv_client_id, message_id, ptr); + recv_client_id, recv_message_id, message_id, ptr); /* Increase message ID. */ - message_id = message_id == INT32_MAX ? 0 : (message_id + 1); + with_mutex (slave_mutex, message_id = message_id == INT32_MAX ? 0 : (message_id + 1);); /* Send message. */ if (full_send(send_buffer + ptr, strlen(send_buffer + ptr))) -- cgit v1.2.3-70-g09d2