Skip to content

Commit a7f8b0d

Browse files
committed
mingw: be more generous when wrapping up the setitimer() emulation
Every once in a while, the Azure Pipeline fails with some semi-random error: timer thread did not terminate timely This error message means that the thread that is used to emulate the setitimer() function did not terminate within 1,000 milliseconds. The most likely explanation (and therefore the one we should assume to be true, according to Occam's Razor) is that the timeout of one second is simply not enough because we try to run so many tasks in parallel. So let's give it ten seconds instead of only one. That should be enough. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e241605 commit a7f8b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ static void stop_timer_thread(void)
24042404
if (timer_event)
24052405
SetEvent(timer_event); /* tell thread to terminate */
24062406
if (timer_thread) {
2407-
int rc = WaitForSingleObject(timer_thread, 1000);
2407+
int rc = WaitForSingleObject(timer_thread, 10000);
24082408
if (rc == WAIT_TIMEOUT)
24092409
error("timer thread did not terminate timely");
24102410
else if (rc != WAIT_OBJECT_0)

0 commit comments

Comments
 (0)