summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-05-26 17:24:04 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-05-26 17:24:04 -0700
commitbde5dd66713cec177846627bf026d8bcddbb41a8 (patch)
tree3b914749067f0b70a792a2e48ceda737c2f2db34 /xrdp
parentd08e27e82463c0f998c82ff62cd6dda81822c68b (diff)
downloadxrdp-proprietary-bde5dd66713cec177846627bf026d8bcddbb41a8.tar.gz
xrdp-proprietary-bde5dd66713cec177846627bf026d8bcddbb41a8.zip
added g_close_wait_obj and size parameter to g_write_ip_address
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp.c4
-rw-r--r--xrdp/xrdp_listen.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c
index d43870f2..d88fd677 100644
--- a/xrdp/xrdp.c
+++ b/xrdp/xrdp.c
@@ -111,8 +111,8 @@ xrdp_child_fork(void)
char text[256];
/* close, don't delete these */
- g_tcp_close((int)g_term_event);
- g_tcp_close((int)g_sync_event);
+ g_close_wait_obj(g_term_event);
+ g_close_wait_obj(g_sync_event);
pid = g_getpid();
g_snprintf(text, 255, "xrdp_%8.8x_main_term", pid);
g_term_event = g_create_wait_obj(text);
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c
index dd85d245..36980b15 100644
--- a/xrdp/xrdp_listen.c
+++ b/xrdp/xrdp_listen.c
@@ -204,7 +204,7 @@ xrdp_listen_fork(struct xrdp_listen* self, struct trans* server_trans)
xrdp_child_fork();
/* recreate the process done wait object, not used in fork mode */
/* close, don't delete this */
- g_tcp_close((int)(self->pro_done_event));
+ g_close_wait_obj(self->pro_done_event);
xrdp_listen_create_pro_done(self);
/* delete listener, child need not listen */
trans_delete(self->listen_trans);