X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fa167e669e4721c1227c992b252ec3d123c0edd..b667edaecd6cac9a6069f2d5f091fcc09239614d:/src/mac/corefoundation/utilsexc_cf.cpp diff --git a/src/mac/corefoundation/utilsexc_cf.cpp b/src/mac/corefoundation/utilsexc_cf.cpp index f9f5227660..ca17d2da39 100644 --- a/src/mac/corefoundation/utilsexc_cf.cpp +++ b/src/mac/corefoundation/utilsexc_cf.cpp @@ -26,6 +26,8 @@ // Use polling instead of Mach ports, which doesn't work on Intel // due to task_for_pid security issues. +// http://developer.apple.com/technotes/tn/tn2050.html + // What's a better test for Intel vs PPC? #ifdef WORDS_BIGENDIAN #define USE_POLLING 0 @@ -80,7 +82,7 @@ void* wxProcessTerminationThread::Entry() { usleep(100); int status = 0; - int rc = waitpid(abs(m_data->pid), & status, WNOHANG); + int rc = waitpid(abs(m_data->pid), & status, 0); if (rc != 0) { if ((rc != -1) && WIFEXITED(status)) @@ -225,11 +227,13 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid) // put it in because it's already compiled for wxCocoa and wxMac GUI lib. #if wxUSE_GUI +#if wxUSE_STDPATHS static wxStandardPathsCF gs_stdPaths; wxStandardPathsBase& wxGUIAppTraits::GetStandardPaths() { return gs_stdPaths; } +#endif #endif // wxUSE_GUI