From cde51867019e0c89157917a450bd3c25dd1f9259 Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Sat, 22 Jan 2011 09:33:32 +0100 Subject: [PATCH] Distributed engine: Wait more for late slaves at the beginning --- distributed/distributed.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/distributed/distributed.c b/distributed/distributed.c index f63518a..f2131ba 100644 --- a/distributed/distributed.c +++ b/distributed/distributed.c @@ -72,6 +72,7 @@ #include #include #include +#include #include #define DEBUG @@ -182,6 +183,9 @@ distributed_notify(struct engine *e, struct board *b, int id, char *cmd, char *a get_replies(time_now() + MAX_FAST_CMD_WAIT, active_slaves); protocol_unlock(); + + // At the beginning wait even more for late slaves. + if (b->moves == 0) sleep(1); return P_OK; } -- 2.11.4.GIT