From 4d6848cecbeaff0cb27a7b9d36e5deeec4ded938 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 12 Jan 2007 23:35:46 +0000 Subject: [PATCH] Experimental fix for `psftp-hang'. (Experimental only in that I haven't thought about it very hard; it's a plausible fix for the observed cause of the extreme CPU usage, being that we were asking to be notified of Windows messages and then not dealing with them, plausibly leading to a loop. Works for me, anyway.) git-svn-id: svn://svn.tartarus.org/sgt/putty@7098 cda61777-01e9-0310-a592-d414129be87e --- windows/winsftp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/winsftp.c b/windows/winsftp.c index 5293e00d..f3c0a6fb 100644 --- a/windows/winsftp.c +++ b/windows/winsftp.c @@ -490,8 +490,7 @@ int do_eventsel_loop(HANDLE other_event) else otherindex = -1; - n = MsgWaitForMultipleObjects(nallhandles, handles, FALSE, ticks, - QS_POSTMESSAGE); + n = WaitForMultipleObjects(nallhandles, handles, FALSE, ticks); if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) { handle_got_event(handles[n - WAIT_OBJECT_0]); -- 2.11.0