From bb601c7d4e948035e1a087c7720aae6e2e7ef973 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 17 Nov 2020 20:02:02 +0300 Subject: Increase builtin timeout from 1 sec to 2 sec before aborting on script pipeline termination --- libbuild2/script/run.cxx | 4 ++-- 1 file 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) { -- cgit v1.1