diff options
author | jsorg71 <jsorg71> | 2008-03-31 11:28:18 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-03-31 11:28:18 +0000 |
commit | 4df6aa909e1c0f8626cf1968a6e188779eef7629 (patch) | |
tree | dfd0f2f2827c68eb9911122739b14f2bfba2abdf /xrdp/xrdp_process.c | |
parent | dab4ae3934dd0afed35887af84c47dfe7e38172e (diff) | |
download | xrdp-proprietary-4df6aa909e1c0f8626cf1968a6e188779eef7629.tar.gz xrdp-proprietary-4df6aa909e1c0f8626cf1968a6e188779eef7629.zip |
main loop reorganization
Diffstat (limited to 'xrdp/xrdp_process.c')
-rw-r--r-- | xrdp/xrdp_process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index cf1debf4..d2e0aaeb 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -24,12 +24,13 @@ /*****************************************************************************/ struct xrdp_process* APP_CC -xrdp_process_create(struct xrdp_listen* owner) +xrdp_process_create(struct xrdp_listen* owner, tbus done_event) { struct xrdp_process* self; self = (struct xrdp_process*)g_malloc(sizeof(struct xrdp_process), 1); self->lis_layer = owner; + self->done_event = done_event; return self; } @@ -138,6 +139,6 @@ xrdp_process_main_loop(struct xrdp_process* self) self->session = 0; g_tcp_close(self->sck); self->status = -1; - xrdp_listen_delete_pro(self->lis_layer, self); + g_set_wait_obj(self->done_event); return 0; } |