From: Stefan Csomor Date: Tue, 8 May 2007 04:52:26 +0000 (+0000) Subject: if it's a separate thread, it's allowed to hang (perf issue reported by BOINC) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eff41cb91e860caa17cdbae89f5afef4f0a1ba4a?ds=inline if it's a separate thread, it's allowed to hang (perf issue reported by BOINC) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/corefoundation/utilsexc_cf.cpp b/src/mac/corefoundation/utilsexc_cf.cpp index f9f5227660..7c3796c8a2 100644 --- a/src/mac/corefoundation/utilsexc_cf.cpp +++ b/src/mac/corefoundation/utilsexc_cf.cpp @@ -80,7 +80,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))