Re: [BK console] console updates.

From: Aivils Stoss (Aivils.Stoss@unibanka.lv)
Date: Mon Nov 04 2002 - 04:40:39 EST


Fri, 1 Nov 2002 09:40:05 -0800 (PST) James Simons wrote:
>> On Wed, Oct 30, 2002 at 01:56:38PM -0800, James Simmons wrote:
>> > I doubt this code will go into 2.5.X but it is avaiable for anyone to
play
>> > with it.
>>
>> Why? I don't want to live another release with the old, crappy console,
>> and you've been working on this during almost all of 2.4 now..
>
>Give my console diff a try.
>
>http://phoenix.infradead.org/~jsimmons/console.diff.gz
>
>Its against 2.5.45. It has 3 bugs I know of.
>
>1) Switch back to X messes up the screen.

Already fixed in the linuxconsole 2.4.X backport http://startx.times.lv/

Aivils Stoss

--- linus-2.5/drivers/char/vt_ioctl.c Mon Nov 4 11:33:57 2002
+++ linus-2.5/drivers/char/vt_ioctl.c.changed Mon Nov 4 11:36:45 2002
@@ -1089,17 +1089,17 @@ int vt_ioctl(struct tty_struct *tty, str
                    if (!tmp) {
                         tmp = vc_allocate(vc->vt_newvt);
                         if (!tmp) {
                              i = vc->vt_newvt;
                              vc->vt_newvt = -1;
                              return i;
                         }
                    }
-
+ vc->vt_newvt = -1;
                    /*
                     * When we actually do the console switch,
                     * make sure we are atomic with respect to
                     * other console switches..
                     */
                    acquire_console_sem();
                    complete_change_console(tmp,
vc->display_fg->fg_console);
                    release_console_sem();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:32 EST