diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-02 20:46:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-02 20:46:31 +0200 |
commit | 6c2873ba2bedf239fcfe6587702b1f34691cb405 (patch) | |
tree | daa9b9e02bd0c782780ca7c26329729550580f5c /src/mds-registry/registry.c | |
parent | misc (diff) | |
download | mds-6c2873ba2bedf239fcfe6587702b1f34691cb405.tar.gz mds-6c2873ba2bedf239fcfe6587702b1f34691cb405.tar.bz2 mds-6c2873ba2bedf239fcfe6587702b1f34691cb405.tar.xz |
mds-registry: notify client
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-registry/registry.c | 4 |
1 files changed, 2 insertions, 2 deletions
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))) |