summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-12-08 23:04:03 -0500
committerWilliam Jon McCann <mccann@jhu.edu>2007-12-08 23:04:03 -0500
commit2fba24e67597bf59ae00db2867df7a348c81b094 (patch)
tree1f7145caa751f064106eebe92493ac8b4226225a /data
parent751b95f2aa2eb2cea7fe9e0dec0848865d118ad0 (diff)
use VT_GETSTATE and tty0 to identify a console_ioctl on linux
ConsoleKit tries to find a valid fd it can issue VT_WAITACTIVE against by iterating across a file list and issuing ioctl(fd, KDGKBTYPE, &arg), then checking the return value. Not all console devices support this ioctl, so in some cases it never finds a valid file descriptor to use, and from then on never marks any session active. We probably ought to be using something like VT_GETSTATE instead of a keyboard ioctl, but that's not sufficient to fix it. One fix that seems to work, though I'm not completely sure if it's the best answer, is to add /dev/tty0 to the list of files to try before /dev/console.
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions