lkml.org 
[lkml]   [2006]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 15/15] kconf: Check for eof from input stream.
Hi,

On Sun, 8 Jan 2006, Ben Collins wrote:

> Anyway, the problem is that if there is no terminal (e.g. stdout is
> redirected to a file, and stdin is closed), then kconf loops forever
> trying to get an answer (NULL is not the same as "").

Then let's fix the real problem.

bye, Roman

scripts/kconfig/conf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6.14/scripts/kconfig/conf.c
===================================================================
--- linux-2.6.14.orig/scripts/kconfig/conf.c 2006-01-08 21:52:54.000000000 +0100
+++ linux-2.6.14/scripts/kconfig/conf.c 2006-01-08 21:54:02.000000000 +0100
@@ -314,8 +314,7 @@ static int conf_choice(struct menu *menu
printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
def_sym = sym_get_choice_value(sym);
cnt = def = 0;
- line[0] = '0';
- line[1] = 0;
+ line[0] = 0;
for (child = menu->list; child; child = child->next) {
if (!menu_is_visible(child))
continue;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-01-08 22:01    [W:1.623 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site