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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
