Skip to content

Commit a5a4f6a

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]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c0ab7f6 commit a5a4f6a

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
@@ -2100,7 +2100,7 @@ static void stop_timer_thread(void)
21002100
if (timer_event)
21012101
SetEvent(timer_event); /* tell thread to terminate */
21022102
if (timer_thread) {
2103-
int rc = WaitForSingleObject(timer_thread, 1000);
2103+
int rc = WaitForSingleObject(timer_thread, 10000);
21042104
if (rc == WAIT_TIMEOUT)
21052105
error("timer thread did not terminate timely");
21062106
else if (rc != WAIT_OBJECT_0)

0 commit comments

Comments
 (0)