diff options
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 92d0f3271..e4f8ab979 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -855,7 +855,7 @@ static int getch_nowait(void) | |||
855 | 855 | ||
856 | /* We have kbd_fd in O_NONBLOCK mode, read inside read_key() | 856 | /* We have kbd_fd in O_NONBLOCK mode, read inside read_key() |
857 | * would not block even if there is no input available */ | 857 | * would not block even if there is no input available */ |
858 | rd = read_key(kbd_fd, kbd_input); | 858 | rd = read_key(kbd_fd, kbd_input, /*timeout off:*/ -2); |
859 | if (rd == -1) { | 859 | if (rd == -1) { |
860 | if (errno == EAGAIN) { | 860 | if (errno == EAGAIN) { |
861 | /* No keyboard input available. Since poll() did return, | 861 | /* No keyboard input available. Since poll() did return, |