X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a6d6b107198739ad2a65dd4a470f36f60795f7f..80f3f3beb68c3aabfdf521e78b383c41399ac75e:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 8b42a135c0..7f275de250 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -1220,14 +1220,23 @@ bool wxHandleFatalExceptions(bool doit) #if wxUSE_GUI -#if __DARWIN__ +#ifdef __DARWIN__ #include #endif // ---------------------------------------------------------------------------- // 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