From 6b556ce0dcb29fda17ecab9a0f9657f0bd32e06d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Apr 2014 17:41:14 +0200 Subject: store the socket's state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mds-server.c') diff --git a/src/mds-server.c b/src/mds-server.c index a82c5e0..4cc3e03 100644 --- a/src/mds-server.c +++ b/src/mds-server.c @@ -332,6 +332,7 @@ void* slave_loop(void* data) /* Fill information table. */ information->list_entry = entry; information->socket_fd = socket_fd; + information->open = 1; if (mds_message_initialise(&(information->message))) { perror(*argv); @@ -356,6 +357,7 @@ void* slave_loop(void* data) else if (errno == ECONNRESET) { r = mds_message_read(&(information->message), socket_fd); + information->open = 0; if (r == 0) { /* TODO */ -- cgit v1.2.3-70-g09d2