From 6a76998e5e88331ce4f5ced88298a0a253be8c76 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 19 Nov 2015 10:29:17 +0100 Subject: [PATCH] executor: fix detection of last call --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/executor.cc b/executor/executor.cc index fa03107b..effe3c3a 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -302,7 +302,7 @@ retry: // Check if any of previous calls have completed. // Give them some additional time, because they could have been // just unblocked by the current call. - bool last = read_input(&input_pos, true); + bool last = read_input(&input_pos, true) == instr_eof; usleep(last ? 1000 : 100); for (int i = 0; i < kMaxThreads; i++) { th = &threads[i];