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_process.c | |
parent | ffee44d51866b9169ab4dcdcd3a06a386ed15aad (diff) | |
download | xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.tar.gz xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.zip |
add pid to event names
Diffstat (limited to 'xrdp/xrdp_process.c')
-rw-r--r-- | xrdp/xrdp_process.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index 50c8cbbb..fdc7974b 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -30,15 +30,17 @@ struct xrdp_process* APP_CC xrdp_process_create(struct xrdp_listen* owner, tbus done_event) { struct xrdp_process* self; - char event_name[64]; + char event_name[256]; + int pid; self = (struct xrdp_process*)g_malloc(sizeof(struct xrdp_process), 1); self->lis_layer = owner; self->done_event = done_event; g_session_id++; self->session_id = g_session_id; - g_snprintf(event_name, 63, "xrdp_process_self_term_event_%8.8x", - self->session_id); + pid = g_getpid(); + g_snprintf(event_name, 255, "xrdp_%8.8x_process_self_term_event_%8.8x", + pid, self->session_id); self->self_term_event = g_create_wait_obj(event_name); return self; } |