tty: Fix order of VT ack/release ioctls and the vt handler
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 16 Jan 2012 15:57:14 +0000 (10:57 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 16 Jan 2012 15:57:14 +0000 (10:57 -0500)
commit353e57f908d291d5ce9b7b64263c75a2c47afcda
treec296ed83c2ad0e81c0809bafab561ec96004e03e
parent23a47a80e203ee6eed705eaccad23e8a2f183d6a
tty: Fix order of VT ack/release ioctls and the vt handler

We can only set up once we've acquired the VT and we shouldn't release the
VT until we've cleaned up.  Before we would release the VT first, and then
race to drop drm master as X tried to get drm master.  Which would kill X.
src/tty.c