summaryrefslogtreecommitdiff
path: root/zwgc/mux.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-06-19 06:55:31 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-06-19 06:55:31 +0000
commitcd2db71ea0d4f611b473bf1999eec73c45a46fbe (patch)
treeb8ec66f1e9038f4e609362b6c0d3f816a3393835 /zwgc/mux.c
parente710177e94e4a1d1a3de7f53d908e3a0e2f66ad9 (diff)
Do not assume select will work with a timeval of 0.
Diffstat (limited to 'zwgc/mux.c')
-rw-r--r--zwgc/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zwgc/mux.c b/zwgc/mux.c
index 0ee29ce..958e885 100644
--- a/zwgc/mux.c
+++ b/zwgc/mux.c
@@ -159,7 +159,7 @@ void mux_loop()
input_sources_copy = input_sources;
i = select(max_source+1, &input_sources_copy, (fd_set *)0,
- (fd_set *)NULL, &tv);
+ (fd_set *)NULL, have_tty ? &tv : (struct timeval *)0);
if (i == -1) {
if (errno == EINTR)