diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-11-17 20:02:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-11-17 20:02:02 +0300 |
commit | bb601c7d4e948035e1a087c7720aae6e2e7ef973 (patch) | |
tree | 0efc335d98be938cebb368e1f95e320e213f994b | |
parent | a68fa2f5c22cbbfc099dd77cccaf44db4cf85730 (diff) |
Increase builtin timeout from 1 sec to 2 sec before aborting on script pipeline termination
-rw-r--r-- | libbuild2/script/run.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/script/run.cxx b/libbuild2/script/run.cxx index f13359f..703cd11 100644 --- a/libbuild2/script/run.cxx +++ b/libbuild2/script/run.cxx @@ -1571,7 +1571,7 @@ namespace build2 // After that wait for the pipeline builtins completion. Since their // standard streams should no longer be written to or read from by any // process, that shouldn't take long. If, however, they won't be able to - // complete in 1 second, then some of them have probably stuck while + // complete in 2 seconds, then some of them have probably stuck while // communicating with a slow filesystem device or similar, and since we // currently have no way to terminate asynchronous builtins, we have no // choice but to abort. @@ -1640,7 +1640,7 @@ namespace build2 // Wait a bit for the builtins to complete and abort if any remain // running. // - dl = system_clock::now () + chrono::seconds (1); + dl = system_clock::now () + chrono::seconds (2); for (pipe_command* c (pc); c != nullptr; c = c->prev) { |