loader: On Mac, reserve the process's original thread for the frameworks. (try 2)

Ken Thomases ken at codeweavers.com
Thu Nov 11 21:05:58 CST 2010

(Since try 1: Avoid top 16MB of address space for our stack so exec doesn't 
fail.  Kill main thread when execing without forking.)

The frameworks expect the original thread to run its run loop, so input
sources (like distributed notifications) get processed.  For example,
Core Audio on Snow Leopard doesn't track changes in the default ouput
device, such as when headphones are plugged in, without this.
  dlls/kernel32/process.c |   50 +++++++++++++++++++
  libs/wine/Makefile.in   |    2 +-
  libs/wine/loader.c      |  121 +++++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 172 insertions(+), 1 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-loader-On-Mac-reserve-the-process-s-original-thread-.patch
Type: text/x-patch
Size: 8334 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101111/89a83bae/attachment.bin>

More information about the wine-patches mailing list