linux: xf86OpenConsole: Don't detach from controlling tty when it is our vt
authorHans de Goede <hdegoede@redhat.com>
Wed, 22 Jan 2014 10:32:56 +0000 (11:32 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 3 Mar 2014 07:13:54 +0000 (08:13 +0100)
commit6b79f28f5cb259f2168ecc3034fe2161e969bf7d
tree9db455dd6b0a23e04b029505bf4c64c18790b853
parent701b7ab34984b0f9f0c357b0ff8b53c5132c6324
linux: xf86OpenConsole: Don't detach from controlling tty when it is our vt

Detaching from our controlling tty makes little sense when it is the same
as the vt we're asked to run on. So automatically assume -keeptty in this case.

This is useful to do because when not running as root the server can only make
various VT related ioctls when it does not detach from the tty.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
hw/xfree86/os-support/linux/lnx_init.c