: Okay, but how?
I suppose you didnt mean it like this, but you make /dev/tty1* by
for i in 0 1 2 3 4 5 6 7 8 9; do mknod /dev/tty1$i c 4 1$i; done
: Where's the state information that tells it "you used
: tty7 last, so now use tty9"??
X uses the ioctl VT_OPENQRY, that returns the first virtual console
i for which VT_IS_IN_USE(i) is not true. Here VT_IS_IN_USE is defined as
#define VT_IS_IN_USE(i) \
(console_driver.table[i] && console_driver.table[i]->count)
Thus, either the serial driver still thinks that someone is using
that console or there is a bug in the bookkeeping of tty->count.
Andries