From: Jan Dubois Date: Mon, 15 Jan 2007 19:25:11 +0000 (-0800) Subject: Re: [PATCH] win32_async_check() can still loop indefinitely X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=29e13651528c7c44e8f5d0007c94bec0a96fe2d1;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] win32_async_check() can still loop indefinitely Message-ID: p4raw-id: //depot/perl@29868 --- 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) {