fix for zombie processes sometimes appearing

This commit is contained in:
Jay Sorg 2018-01-17 11:09:09 -08:00 committed by jsorg71
parent acd05f365f
commit f763cb3788
1 changed files with 5 additions and 1 deletions

View File

@ -123,7 +123,11 @@ xrdp_shutdown(int sig)
void
xrdp_child(int sig)
{
g_waitchild();
int safety;
for (safety = 0; (g_waitchild() >= 0) && (safety <= 10); safety++)
{
}
}
/*****************************************************************************/