aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-05 16:24:35 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-05 19:02:12 +0200
commit58efb7c6a566c512206af66b2183875e78dd7f65 (patch)
treef9352e19d8385ddb6c6441f30224fdc519d28023 /executor
parentfbc5f27a13c5f6998eea222c8457657115994bfa (diff)
sys: improve timespec/timeval generation
Diffstat (limited to 'executor')
-rw-r--r--executor/executor.cc2
1 files changed, 2 insertions, 0 deletions
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 = {};