summaryrefslogtreecommitdiff
path: root/src/test-tty-idle-monitor.c
AgeCommit message (Collapse)AuthorFilesLines
2016-06-30Freebsd: Fix session activationEric Koegel1-1/+1
On Freebsd (10.3), quite often X11 sessions do not become active. If they are active, switching the virtual console and then later return to X causes the X session to be inactive. I believe this has something to do with how the FreeBSD sc/vt drivers initialize the devices (and when). I have a patch to fix the issue attached. This problem is present all the way back to version 0.45. I noticed that some time ago, someone tried to fix this issue by using /dev/consolectl, but this device is never used because isatty() is false on /dev/consolectl. I have an attached patch that gets ConsoleKit to use /dev/consolectl and now session activation and VT switching work. Patch and bug report by Victor Bergman. https://github.com/ConsoleKit2/ConsoleKit2/issues/71 Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2014-09-30Clean up some compiler warnings and deprecated functionsEric Koegel1-0/+2
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2007-08-27move some of the freebsd specific stuff into sysdepsWilliam Jon McCann1-13/+1
2007-08-26Add support for FreeBSDJoe Marcus Clarke1-0/+4
Allow this test to properly determine the current tty device. Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
2007-08-17add a vt monitor test, move getfd to sysdeps, add a check for the root userWilliam Jon McCann1-10/+2
2007-08-14make sure the device is a console and add some instructionsWilliam Jon McCann1-0/+44
2007-08-14don't bail if /proc/self/fd/0 is not a linkWilliam Jon McCann1-2/+1
2007-04-05use inotify to detect activity on tty when possibleWilliam Jon McCann1-0/+82