[Bug 38143] IO completions cause wineserver to leak APC packets

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Feb 24 17:21:49 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=38143

Sebastian Lackner <sebastian at fds-team.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastian at fds-team.de

--- Comment #4 from Sebastian Lackner <sebastian at fds-team.de> ---
(In reply to Dmitry Timoshkov from comment #1)
> Created attachment 50871 [details]
> patch
> 
> Attached patch puts a thread into alertable state so that
> NtRemoveIoCompletion
> is actually able to fetch a waiting APC from the queue.

Does that match the Windows behaviour, or is it just a hack? Since applications
can also queue their own APCs (with QueueUserAPC) Wine should try to stay as
close as possible to the Windows behaviour. Moreover, please note that a wait
is interrupted when APC calls are handled, so with your patch applied
NtRemoveIoCompletion returns a different status value in some situations. It
sounds like this might need some additional tests. ;)

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list