mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[select] This code is problematic.
EINVAL on OpenBSD/i386.
This commit is contained in:
parent
6c32ce3c61
commit
f91d214820
@ -1253,12 +1253,14 @@ select_loop(void (*init)(void))
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (has_timer) {
|
if (has_timer) {
|
||||||
/* Be sure timeout is not negative. */
|
/* Be sure timeout is not negative. */
|
||||||
timeval_limit_to_zero_or_one(&t);
|
timeval_limit_to_zero_or_one(&t);
|
||||||
timeout = (struct timeval *) &t;
|
timeout = (struct timeval *) &t;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
n = loop_select(w_max, &x_read, &x_write, &x_error, timeout);
|
n = loop_select(w_max, &x_read, &x_write, &x_error, timeout);
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
/* The following calls (especially gettext)
|
/* The following calls (especially gettext)
|
||||||
|
Loading…
Reference in New Issue
Block a user