summaryrefslogtreecommitdiff
path: root/zwgc/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'zwgc/mux.c')
-rw-r--r--zwgc/mux.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/zwgc/mux.c b/zwgc/mux.c
index 341e6e6..eb6232f 100644
--- a/zwgc/mux.c
+++ b/zwgc/mux.c
@@ -144,14 +144,24 @@ mux_loop(void)
*/
if (mux_end_loop_p)
break;
-
+ tvp = NULL;
+ tv.tv_sec = 0;
if (have_tty) {
+#ifdef CMU_ZWGCPLUS
+ tv.tv_sec = plus_timequeue_events();
+ if (tv.tv_sec > 10) tv.tv_sec = 10;
+#else
tv.tv_sec = 10;
+#endif
tv.tv_usec = 0;
- tvp = &tv;
+#ifdef CMU_ZWGCPLUS
} else {
- tvp = NULL;
+ tv.tv_sec = plus_timequeue_events();
+ tv.tv_usec = 0;
+#endif
}
+ if (tv.tv_sec)
+ tvp = &tv;
/*
* Do a select on all the file descriptors we care about to