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))