executor: fix detection of last call

This commit is contained in:
Dmitry Vyukov 2015-11-19 10:29:17 +01:00
parent 485651138e
commit 6a76998e5e

View File

@ -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];