aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-04-17 11:56:55 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-04-19 10:26:57 +0200
commit1155a0d1d6da810ccd0ef63b79c71b5497dd3dd6 (patch)
tree2cd61b31bae6300c62574d472d66a3cf05a37289 /executor/executor.cc
parentcc8708904da08f9c884253477fc003cc6f6d5945 (diff)
sys/linux: sync call timeouts with executor
Timeouts in executor and sys/linux get out of sync. Sync them.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 87f1eaeb6..64d84c394 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -711,7 +711,8 @@ retry:
// We already have results from the previous execution.
} else if (flag_threaded) {
// Wait for call completion.
- // Note: sys knows about this 25ms timeout when it generates timespec/timeval values.
+ // Note: sys/linux knows about this 45 ms timeout when it generates timespec/timeval values.
+ // Note: pkg/csource also knows about this 45 ms per-call timeout.
uint64 timeout_ms = 45 + call->attrs.timeout;
if (flag_debug && timeout_ms < 1000)
timeout_ms = 1000;