links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 022b01844cc2b2c608d61d491688dd59102c99e2
Parent: 7275484f9faef295f1b1f680e2979a6e55be101c
Author: opask
Date:   Wed, 15 Aug 2018 08:06:17 -0600

remove unused OS_BAD_SIGNALS code from select.c

Diffstat:
Mselect.c | 12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/select.c b/select.c @@ -868,23 +868,11 @@ void select_loop(void (*init)(void)) check_signals(); check_timers(); if (!F) redraw_all_terminals(); -#ifdef OS_BAD_SIGNALS - /* Cygwin has buggy signals that sometimes don't interrupt select. - So don't wait indefinitely in it. */ - tv.tv_sec = 1; - tv.tv_usec = 0; - tm = &tv; -#endif if (!list_empty(timers)) { uttime tt = list_struct(timers.next, struct timer)->interval + 1; -#ifdef OS_BAD_SIGNALS - if (tt < 1000) -#endif - { tv.tv_sec = tt / 1000 < INT_MAX ? (int)(tt / 1000) : INT_MAX; tv.tv_usec = (tt % 1000) * 1000; tm = &tv; - } } memcpy(&x_read, &w_read, sizeof(fd_set)); memcpy(&x_write, &w_write, sizeof(fd_set));