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:
1 parent
9ac9e55e3c
commit
f4dff77355
2 files changed
+523
-461
No files matched your search
+522
-460
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -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