Re: [PATCH 15/15] kconf: Check for eof from input stream.



Hi,

On Wednesday 04 January 2006 23:01, Ben Collins wrote:

> +static char *fgets_check_stream(char *s, int size, FILE *stream)
> +{
> + char *ret = fgets(s, size, stream);
> +
> + if (ret == NULL && feof(stream)) {
> + printf(_("aborted!\n\n"));
> + printf(_("Console input is closed. "));
> + printf(_("Run 'make oldconfig' to update configuration.\n\n"));
> + exit(1);
> + }
> +
> + return ret;
> +}

What problem does this solve? conf should finish normally anyway and just set
everything to the default.

bye, Roman

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Recursive dependency for SAA7134 in 2.6.15-rc7
    ... bye, Roman ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: ATL bug - atlrx.h
    ... Roman, ... FWIW, this code has been changed for VS2005 B2, so maybe MS were aware ... MVP VC++ FAQ: http://www.mvps.org/vcfaq ... Prev by Date: ...
    (microsoft.public.vc.atl)
  • Re: 2.6.15-mm3
    ... On Wed, 11 Jan 2006, Andrew Morton wrote: ... bye, Roman ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: Mercurymobiles offer
    ... I have received so far no answer to my enquiry sent via their website ... Roman ... Prev by Date: ...
    (uk.telecom.mobile)
  • Kopf- und Fusszeilen
    ... Danke für die Antwort. ... Roman ... Prev by Date: ...
    (microsoft.public.de.word)