diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2015-07-13 01:10:48 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2015-07-13 01:10:48 -0700 |
commit | 6c23b85593600e96fba8c67e5fd21586bfafcb15 (patch) | |
tree | 117953cf72098c22b926a08f174a5e0333515d59 | |
parent | 136e0725130ae74e7578d50f9ed16d44c0a5067a (diff) | |
download | xrdp-proprietary-6c23b85593600e96fba8c67e5fd21586bfafcb15.tar.gz xrdp-proprietary-6c23b85593600e96fba8c67e5fd21586bfafcb15.zip |
add timeout to trans_get_wait_objs_rw
-rw-r--r-- | common/trans.c | 2 | ||||
-rw-r--r-- | common/trans.h | 2 | ||||
-rw-r--r-- | sesman/chansrv/chansrv.c | 2 | ||||
-rw-r--r-- | vnc/vnc.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp_process.c | 2 | ||||
-rw-r--r-- | xup/xup.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/common/trans.c b/common/trans.c index 4253e6f0..31da1325 100644 --- a/common/trans.c +++ b/common/trans.c @@ -171,7 +171,7 @@ trans_get_wait_objs(struct trans *self, tbus *objs, int *count) /*****************************************************************************/ int APP_CC trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount, - tbus *wobjs, int *wcount) + tbus *wobjs, int *wcount, int *timeout) { if (self == 0) { diff --git a/common/trans.h b/common/trans.h index 34816eed..639e64d1 100644 --- a/common/trans.h +++ b/common/trans.h @@ -95,7 +95,7 @@ trans_get_wait_objs(struct trans* self, tbus* objs, int* count); int APP_CC trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount, - tbus *wobjs, int *wcount); + tbus *wobjs, int *wcount, int *timeout); int APP_CC trans_check_wait_objs(struct trans* self); int APP_CC diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index 29e8c106..9752b7f3 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -1184,7 +1184,7 @@ channel_thread_loop(void *in_val) num_objs++; trans_get_wait_objs(g_lis_trans, objs, &num_objs); trans_get_wait_objs_rw(g_con_trans, objs, &num_objs, - wobjs, &num_wobjs); + wobjs, &num_wobjs, &timeout); trans_get_wait_objs(g_api_lis_trans, objs, &num_objs); if (g_api_con_trans_list != 0) @@ -1407,7 +1407,7 @@ lib_mod_get_wait_objs(struct vnc *v, tbus *read_objs, int *rcount, if (v->trans != 0) { trans_get_wait_objs_rw(v->trans, read_objs, rcount, - write_objs, wcount); + write_objs, wcount, timeout); } } diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index 4f869ab2..7d9c3a14 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -220,7 +220,7 @@ xrdp_process_main_loop(struct xrdp_process *self) xrdp_wm_get_wait_objs(self->wm, robjs, &robjs_count, wobjs, &wobjs_count, &timeout); trans_get_wait_objs_rw(self->server_trans, robjs, &robjs_count, - wobjs, &wobjs_count); + wobjs, &wobjs_count, &timeout); /* wait */ if (g_obj_wait(robjs, robjs_count, wobjs, wobjs_count, timeout) != 0) { @@ -1510,7 +1510,7 @@ lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount, if (mod->trans != 0) { trans_get_wait_objs_rw(mod->trans, read_objs, rcount, - write_objs, wcount); + write_objs, wcount, timeout); } } return 0; |