When running "X vt2" while something already runs on vt2 (getty for instance),
X doesn't get keypresses (getty does), which is kind of annoying for merely
killing the server for instance :)
In Xserver/hw/xfree86/os-support/linux/lnx_init.c, there should be some
check like when VTnum != -1 && !ShareVTs:
struct vt_stat vtstat;
if ((ioctl(fd, VT_GETSTATE, &vtstat) < 0))
FatalError("failed to query vt %d availability", vtno);
if (vtstat.v_state & (1<<vtno))
FatalError("/dev/%s: already in use", tty);
fd being opened from /dev/tty0.
Only vt 1-15 can be checked this way (because of the size of vtstat.v_state),
but this is safer than nothing.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Do you still experience this issue with newer soft ?
Please check the status of your issue.
It seems I never got a mail for comment from chemtech 2013-03-15. I've just tried with Xorg 7.7, I don't have the issue any more. I guess that's thanks to input & evdev.