diff options
| author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-24 07:14:17 +0000 |
|---|---|---|
| committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-24 07:14:17 +0000 |
| commit | 26a89ae157249617ddd8909ae0130fc22c65f693 (patch) | |
| tree | c9889bd051ff152f51a1e0056e1243063116e7c9 /shell | |
| parent | 5c87adf4105cda872b114bb4fdb121733c14e5c1 (diff) | |
| download | busybox-w32-26a89ae157249617ddd8909ae0130fc22c65f693.tar.gz busybox-w32-26a89ae157249617ddd8909ae0130fc22c65f693.tar.bz2 busybox-w32-26a89ae157249617ddd8909ae0130fc22c65f693.zip | |
less: implement waiting for input using select(). Rather tricky business.
But we do not read entire input anymore up-front.
git-svn-id: svn://busybox.net/trunk/busybox@17067 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 2 |
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) |
