From 58efb7c6a566c512206af66b2183875e78dd7f65 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 5 Sep 2017 16:24:35 +0200 Subject: sys: improve timespec/timeval generation --- executor/executor.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 8f5e221ac..8fa4a071b 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -549,6 +549,8 @@ retry: // Wait for call completion. uint64_t start = current_time_ms(); uint64_t now = start; + // Note: sys knows about this 20ms timeout when it generates + // timespec/timeval values. const uint64_t timeout_ms = flag_debug ? 500 : 20; for (;;) { timespec ts = {}; -- cgit mrf-deployment