Re: Question on /sys/class/tty/tty0/active

From: Alan Cox
Date: Sun Sep 23 2012 - 11:37:48 EST


On Sun, 23 Sep 2012 16:40:07 +0200
richard -rw- weinberger <richard.weinberger@xxxxxxxxx> wrote:

> Hi!
>
> I'm booting 3.6-rc6 using KVM and observe the following output:
> $ tty
> /dev/tty0
> $ cat /sys/class/tty/tty0/active
> tty1
>
> Why does the active file say I'm on tty1?
> There is no tty1, I'm on tty0.
> (Also "who" reports tty0)

tty0 is the current vt, tty1 is a direct mapping to that vt.

So it looks correct to me.

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