less: implement waiting for input using select(). Rather tricky business.
But we do not read entire input anymore up-front.
This commit is contained in:
parent
9ac9e55e3c
commit
f4dff77355
982
miscutils/less.c
982
miscutils/less.c
File diff suppressed because it is too large
Load Diff
@ -12693,7 +12693,7 @@ readcmd(int argc, char **argv)
|
||||
FD_ZERO (&set);
|
||||
FD_SET (0, &set);
|
||||
|
||||
i = select (FD_SETSIZE, &set, NULL, NULL, &ts);
|
||||
i = select(FD_SETSIZE, &set, NULL, NULL, &ts);
|
||||
if (!i) {
|
||||
#if defined(CONFIG_ASH_READ_NCHARS)
|
||||
if (nch_flag)
|
||||
|
Loading…
Reference in New Issue
Block a user