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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user