summaryrefslogtreecommitdiffstats
path: root/src/ck-sysdeps-unix.c
Commit message (Collapse)AuthorAgeFilesLines
* use VT_GETSTATE and tty0 to identify a console_ioctl on linuxPeter Jones2007-12-081-4/+9
| | | | | | | | | | | | | 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.
* try to make things work for systems that don't support VT_ACTIVATE etcWilliam Jon McCann2007-09-191-4/+23
|
* untabifyWilliam Jon McCann2007-08-281-3/+3
|
* move some of the freebsd specific stuff into sysdepsWilliam Jon McCann2007-08-271-0/+69
|
* Some more fixes, Now test-vt-monitor works correctly.Florent Thoumie2007-08-251-3/+11
| | | | | | Submitted by: marcus Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
* more solaris supportWilliam Jon McCann2007-08-211-11/+29
| | | | based on patch from Brian Cameron.
* add a vt monitor test, move getfd to sysdeps, add a check for the root userWilliam Jon McCann2007-08-171-1/+113
|
* a few fixes for peer cred stuffWilliam Jon McCann2007-08-171-6/+20
|
* move peercred stuff into sysdeps. add solaris support.William Jon McCann2007-08-161-0/+84