From 1fe777ab5933019b202fa56112eca5c760e2fe94 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 11 May 2014 07:04:30 +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/mds-server/mds-server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mds-server') diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c index bc3b20f..694197b 100644 --- a/src/mds-server/mds-server.c +++ b/src/mds-server/mds-server.c @@ -1200,7 +1200,8 @@ void multicast_message(multicast_t* multicast) { if (errno != EINTR) perror(*argv); - break; + else if (reexecing) + break; } n -= sent; multicast->message_ptr += sent; @@ -1208,7 +1209,7 @@ void multicast_message(multicast_t* multicast) ); /* Stop if we are re-exec:ing. */ - if ((n > 0) && (errno == EINTR)) + if ((n > 0) && reexecing) return; /* Wait for a reply. */ -- cgit v1.2.3-70-g09d2