http://bugs.winehq.org/show_bug.cgi?id=22291
--- Comment #19 from Mike Kaplinskiy mike.kaplinskiy@gmail.com 2010-06-04 22:06:12 --- Created an attachment (id=28568) --> (http://bugs.winehq.org/attachment.cgi?id=28568) Proper patch for git
Here's a proper patch that should fix all shutdown-cancels-blocking-call bugs introduced by the commit.
I think this should wait for post-1.2, since the fix is racy and can cause some really bad things to happen (hanging wineserver, hanging apps for no apparent reason). The proper fix would be to move polling to the wineserver, which may not be soon.
Any app that depends on close behavior like this needs to be rewritten if possible, ala https://bugzilla.kernel.org/show_bug.cgi?id=546