From 29e13651528c7c44e8f5d0007c94bec0a96fe2d1 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Mon, 15 Jan 2007 11:25:11 -0800 Subject: [PATCH] Re: [PATCH] win32_async_check() can still loop indefinitely Message-ID: p4raw-id: //depot/perl@29868 --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/win32.c b/win32/win32.c index a829b17..43c7f3f 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2143,7 +2143,7 @@ win32_msgwait(pTHX_ DWORD count, LPHANDLE handles, DWORD timeout, LPDWORD result timeout += ticks; } while (1) { - DWORD result = MsgWaitForMultipleObjects(count,handles,FALSE,timeout-ticks, QS_ALLEVENTS); + DWORD result = MsgWaitForMultipleObjects(count,handles,FALSE,timeout-ticks, QS_POSTMESSAGE|QS_TIMER); if (resultp) *resultp = result; if (result == WAIT_TIMEOUT) { -- 2.7.4