From aeb42ddc7990e6e78c45b2aeb4c9f5364bbc4155 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 11 May 2014 19:19:43 +0200 Subject: handle errors when sending a multicast message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server/mds-server.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c index f9c2fd0..e2978c3 100644 --- a/src/mds-server/mds-server.c +++ b/src/mds-server/mds-server.c @@ -1252,7 +1252,7 @@ void multicast_message(multicast_t* multicast) { if (errno != EINTR) perror(*argv); - break; /* TODO handle errors */ + break; } n -= sent; multicast->message_ptr += sent; @@ -1260,8 +1260,13 @@ void multicast_message(multicast_t* multicast) ); /* Stop if we are re-exec:ing. */ - if ((n > 0) && reexecing) - return; + if (n > 0) + { + if (reexecing) + return; + else + continue; + } /* Wait for a reply and act upon it. */ if ((n == 0) && client_.modifying) -- cgit v1.2.3-70-g09d2