aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-03 19:00:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-03 19:00:57 +0200
commit779fa51c58e917028820c33a1008e346153c07c3 (patch)
tree1ff4c655efb2d3fbc79ff9eef1dd369763656366
parent63968cf4d8aa2191166683b03b729e8832f1da35 (diff)
Adjust MSYS2 workaround timings some more0.5.0
-rw-r--r--libbutl/process.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbutl/process.cxx b/libbutl/process.cxx
index b94e2f2..478793e 100644
--- a/libbutl/process.cxx
+++ b/libbutl/process.cxx
@@ -1172,7 +1172,7 @@ namespace butl
//
optional<bool> msys; // Absent if we don't know.
- for (size_t ret (0); ret != (msys ? 40 : 16); ++ret)
+ for (size_t ret (0); ret != (msys ? 40 : 20); ++ret)
{
if (!CreateProcess (
batch != nullptr ? batch : pp.effect_string (),
@@ -1192,15 +1192,15 @@ namespace butl
// Detect if this is an MSYS2 process by checking if the process has
// loaded msys-2.0.dll.
//
- size_t wait (250);
+ size_t wait (300);
if (!msys)
{
// Wait a bit for the process to load its DLLs.
//
- if (WaitForSingleObject (pi.hProcess, 75) == WAIT_TIMEOUT)
+ if (WaitForSingleObject (pi.hProcess, 100) == WAIT_TIMEOUT)
{
- wait -= 75;
+ wait -= 100;
DWORD mn;
HMODULE ms[32]; // Normally it is one of the first.