As Detlef said I don't know have to specify that in inittab thus I run the
shell regardless whether there is or not a debug console.
I choose the tty0 according to busybox 1.2.2 which works fine for me. So
maybe some kind of configuration option which could
specify which device to use if no console is available would make sense.

Regards,
Ladislav

2009/10/29 Mike Frysinger <[email protected]>

> On Thursday 29 October 2009 09:28:08 Denys Vlasenko wrote:
> > On Thu, Oct 29, 2009 at 1:00 PM, ladislav klenovic wrote:
> > > If I change the sanitized stdio to CURRENT_VC the problem
> > > disapeares.
> > > The patch is
> > > bellow. I wanted to impact the source code as less as possible so I
> just
> > > have created a new
> > > method bb_sanitize_stdio_current_vc().
> >
> > But this is not a "sanitization" anymore. You don't open
> > fds 0,1,2 to a safe place, you open them to /dev/tty0.
> > How init knows it's safe to do that?
>
> to reinforce Denys' statements, you cant assume /dev/tty0 (or any VT) even
> exists.  considering you're coming from an embedded platform and using
> serial
> consoles, it's kind of surprising that you're making this kind of
> assumption.
> -mike
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to