summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/xrdp.c')
-rw-r--r--xrdp/xrdp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c
index adf182b9..65bd40a0 100644
--- a/xrdp/xrdp.c
+++ b/xrdp/xrdp.c
@@ -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++)
+ {
+ }
}
/*****************************************************************************/