From f4dff773553da8b4a5a66205e920a82732156851 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 24 Dec 2006 07:14:17 +0000 Subject: less: implement waiting for input using select(). Rather tricky business. But we do not read entire input anymore up-front. --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') 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) 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) -- cgit v1.2.3