[BusyBox] applett chvt via glibc-2.1.3 / kernel-2.2.19

Stephan Linz linz at mazet.de
Thu Nov 21 05:54:03 UTC 2002


Am Donnerstag, 21. November 2002 12:15 schrieb Vladimir N. Oleynik:
> 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 ???

>
>
> --w
> vodz

-- 

======================================================================
Stephan Linz
Software Engineer

MAZeT GmbH                   Email:   mailto:linz at mazet.de
Branche office Jena          Phone:   +49-3641-2809-55
Göschwitzer Straße 32        Fax  :   +49-3641-2809-12
D-07745 JENA
Germany

Visit our web-pages: http://www.MAZeT.de
======================================================================



More information about the busybox mailing list