Fix wxExecute process end detect behavior for wxCocoa and wxMac. I have no

idea why the current code used for Intel Macs doesn't work but it's not
working for me at all.  This should probably be backported to 2.8.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-10-14 08:51:45 +00:00
parent 1a6d6b1071
commit a3261ffb75
2 changed files with 127 additions and 1 deletions

View File

@@ -1227,7 +1227,16 @@ bool wxHandleFatalExceptions(bool doit)
// wxExecute support
// ----------------------------------------------------------------------------
#define USE_OLD_DARWIN_END_PROCESS_DETECT (defined(__DARWIN__) && (defined(__WXMAC__) || defined(__WXCOCOA__)))
/*
NOTE: If this proves not to work well for wxMac then move back to the old
behavior. If, however, it proves to work just fine, nuke all of the code
for the old behavior. I strongly suggest backporting this to 2.8 as well.
However, beware that while you can nuke the old code here, you cannot
nuke the wxAddProcessCallbackForPid from the 2.8 branch (found in
utilsexc_cf since it's an exported symbol).
*/
// #define USE_OLD_DARWIN_END_PROCESS_DETECT (defined(__DARWIN__) && defined(__WXMAC__))
#define USE_OLD_DARWIN_END_PROCESS_DETECT 0
// wxMac/wxCocoa don't use the same process end detection mechanisms so we don't
// need wxExecute-related helpers for them