summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_listen.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-12-01 09:37:08 +0000
committerjsorg71 <jsorg71>2008-12-01 09:37:08 +0000
commit9317386e74c10362a4b95b250dcd8d353a3fca5f (patch)
tree2b541d0bbd8a8b2968e5a41c7efac43ee8911813 /xrdp/xrdp_listen.c
parentffee44d51866b9169ab4dcdcd3a06a386ed15aad (diff)
downloadxrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.tar.gz
xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.zip
add pid to event names
Diffstat (limited to 'xrdp/xrdp_listen.c')
-rw-r--r--xrdp/xrdp_listen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c
index 4526d147..600feaf2 100644
--- a/xrdp/xrdp_listen.c
+++ b/xrdp/xrdp_listen.c
@@ -32,9 +32,13 @@ struct xrdp_listen* APP_CC
xrdp_listen_create(void)
{
struct xrdp_listen* self;
+ int pid;
+ char text[256];
+ pid = g_getpid();
self = (struct xrdp_listen*)g_malloc(sizeof(struct xrdp_listen), 1);
- self->pro_done_event = g_create_wait_obj("xrdp_listen_pro_done_event");
+ g_snprintf(text, 255, "xrdp_%8.8x_listen_pro_done_event", pid);
+ self->pro_done_event = g_create_wait_obj(text);
self->process_list = list_create();
if (g_process_sem == 0)
{