[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] applett chvt via glibc-2.1.3 / kernel-2.2.19
From:       "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date:       2002-11-21 6:19:03
[Download RAW message or body]

Stephan,
 
> > > these days I've tried out to use chvt to change foreground virtual
> > > terminal via shell script, but nothing was working. I find out, that
> > > there is an error at my target caused by chvt. see below:
> > >
> > > ~ # chvt 5
> > > chvt: VT_ACTIVATE: Bad file descriptor
> > > ~ # _
> > >
> > > Hm, I don't know about this message, because the same busybox binary is
> > > working fine at my RedHat 7.1 host system. Here my environment:
> >
> > Hmm. I examined libbb/get_console. This file have strange code, my changes
> > from last_patch52 don`t changing this strange algorithm.
> >
> > Please remove lines from libbb/get_console and put result:
> >
> >         if (-1 == (fd = open_a_console("/dev/console")))
> >                         return -1;
> >                 else
> >                         return fd;
> 
> great, it works now :-) -- but why ???

These lines always return without running next lines.
Why? I don`t know. Is not my code. Author may be mixing code
from open console (init) and console tools.
Regular "kbd" utils have this code without this lines.


--w
vodz

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic