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

From: Geert Uytterhoeven
Date: Thu Oct 07 2004 - 04:56:03 EST


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@xxxxxxxxxxxxxx

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
-
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/