http://bugs.winehq.org/show_bug.cgi?id=29499
--- Comment #26 from Alex Henrie alexhenrie24@gmail.com 2012-03-06 11:56:41 CST --- Created attachment 39212 --> http://bugs.winehq.org/attachment.cgi?id=39212 check bad events patch with POLLHUP in events
After much searching, I found the following comment in Chromium's source code:
* Note that we are relying on a corner case of poll() here. * Using POLLHUP in "events" is not meaningful on Linux, which is * documented as ignoring POLLHUP as an input argument and will * return POLLHUP in "revents" even if it not present in "events". * On Mac OS X, however, passing events == 0 does not work if we * want to get POLLHUP. We are in the unusual situation of * waiting for a socket to become *un*writable.
http://src.chromium.org/native_client/trunk/src/native_client/src/trusted/de...
I revised Bruno's patch to add POLLERR and POLLHUP to the events parameter. PommeGolden, would you test this new patch?