summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2018-01-17 11:09:09 -0800
committerjsorg71 <jay.sorg@gmail.com>2018-01-22 04:34:09 +0000
commitf763cb37885b02c310aa906147669a29b99405dc (patch)
tree585e2d40e38502e77e9b71f3d112e752619a51fa /xrdp
parentacd05f365f885e8a4aab23d23ba4ce48b6f31f71 (diff)
downloadxrdp-proprietary-f763cb37885b02c310aa906147669a29b99405dc.tar.gz
xrdp-proprietary-f763cb37885b02c310aa906147669a29b99405dc.zip
fix for zombie processes sometimes appearing
Diffstat (limited to 'xrdp')
-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++)
+ {
+ }
}
/*****************************************************************************/