diff options
author | jsorg71 <jsorg71> | 2008-12-01 09:37:08 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-12-01 09:37:08 +0000 |
commit | 9317386e74c10362a4b95b250dcd8d353a3fca5f (patch) | |
tree | 2b541d0bbd8a8b2968e5a41c7efac43ee8911813 /xrdp/xrdp_wm.c | |
parent | ffee44d51866b9169ab4dcdcd3a06a386ed15aad (diff) | |
download | xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.tar.gz xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.zip |
add pid to event names
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r-- | xrdp/xrdp_wm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 1d09cf69..3a7c52ab 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -28,7 +28,8 @@ xrdp_wm_create(struct xrdp_process* owner, struct xrdp_client_info* client_info) { struct xrdp_wm* self; - char event_name[64]; + char event_name[256]; + int pid; self = (struct xrdp_wm*)g_malloc(sizeof(struct xrdp_wm), 1); self->client_info = client_info; @@ -39,8 +40,9 @@ xrdp_wm_create(struct xrdp_process* owner, self->screen->wm = self; self->pro_layer = owner; self->session = owner->session; - g_snprintf(event_name, 63, "xrdp_wm_login_mode_event_%8.8x", - owner->session_id); + pid = g_getpid(); + g_snprintf(event_name, 255, "xrdp_%8.8x_wm_login_mode_event_%8.8x", + pid, owner->session_id); self->login_mode_event = g_create_wait_obj(event_name); self->painter = xrdp_painter_create(self, self->session); self->cache = xrdp_cache_create(self, self->session, self->client_info); |