Re: [PATCH] Console: fall back to /dev/null when no console is availlable

Geert Uytterhoeven
2004-10-07T09:50:51Z

On Thu, 7 Oct 2004, Russell King wrote:
> On Thu, Oct 07, 2004 at 10:18:51AM +0200, Geert Uytterhoeven wrote:
> > What about letting the kernel open the console without going through
> > /dev/console? Since the kernel knows /dev/console is the device with major 5
> > minor 1, why can't it just open (5, 1)? Then we don't need a /dev/console node,
> > and things will never break.
>
> Famous last words. What about the case where you don't have a console
> device registered (eg in the case of an embedded device) ? Currently,
> opening /dev/console fails in that circumstance.

Why didn't you quote the next line I wrote?

| Same for /dev/null as a fallback.

which answers your question :-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds