From 779fa51c58e917028820c33a1008e346153c07c3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 May 2017 19:00:57 +0200 Subject: Adjust MSYS2 workaround timings some more --- libbutl/process.cxx | 8 ++++---- 1 file 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 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. -- cgit v1.1