aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-24 07:14:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-24 07:14:17 +0000
commitf4dff773553da8b4a5a66205e920a82732156851 (patch)
treec9889bd051ff152f51a1e0056e1243063116e7c9 /shell
parent9ac9e55e3c1dd11bf007623ea672f7569366c186 (diff)
downloadbusybox-w32-f4dff773553da8b4a5a66205e920a82732156851.tar.gz
busybox-w32-f4dff773553da8b4a5a66205e920a82732156851.tar.bz2
busybox-w32-f4dff773553da8b4a5a66205e920a82732156851.zip
less: implement waiting for input using select(). Rather tricky business.
But we do not read entire input anymore up-front.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 591e0a658..2de61dad9 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12693,7 +12693,7 @@ readcmd(int argc, char **argv)
12693 FD_ZERO (&set); 12693 FD_ZERO (&set);
12694 FD_SET (0, &set); 12694 FD_SET (0, &set);
12695 12695
12696 i = select (FD_SETSIZE, &set, NULL, NULL, &ts); 12696 i = select(FD_SETSIZE, &set, NULL, NULL, &ts);
12697 if (!i) { 12697 if (!i) {
12698#if defined(CONFIG_ASH_READ_NCHARS) 12698#if defined(CONFIG_ASH_READ_NCHARS)
12699 if (nch_flag) 12699 if (nch_flag)