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
This commit is contained in:
Stefan Csomor
2007-05-08 04:52:26 +00:00
parent fa64a0c396
commit eff41cb91e

View File

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