summaryrefslogtreecommitdiffstats
path: root/src/ck-vt-monitor.c
Commit message (Collapse)AuthorAgeFilesLines
* always try to detect parameters for sessionWilliam Jon McCann2008-04-191-1/+0
| | | | | Treat the parameters passed in via OpenSessionWithParameters as overrides.
* fix solaris vt handling to work when no vt availableBrian Cameron2008-02-251-3/+5
| | | | | | This fixes the patch that Simon Zhang sent you earlier so that it builds on machines without VT.
* improve supporting Solaris VT switchingSimon Zheng2008-02-191-0/+59
| | | | | | | | | | | | | | | Here's a patch for ConsoleKit to improve supporting Solaris VT. Two changes are made. - Solaris supports synchronous event notification in STREAMS. Using this, we can avoid creating many threads for idle VTs. By setting the S_MSG flag in an I_SETSIG STREAMS ioctl, applications can get a synchronous notification of VT switching. In other words, these processes are able to receive a SIGPOLL signal when a VT switching succeeds. - Change a little command line of getting maximum vt console numbers.
* move some of the freebsd specific stuff into sysdepsWilliam Jon McCann2007-08-271-77/+19
|
* Some more fixes, Now test-vt-monitor works correctly.Florent Thoumie2007-08-251-13/+22
| | | | | | Submitted by: marcus Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
* First attempt a making ConsoleKit work on FreeBSDFlorent Thoumie2007-08-251-2/+14
| | | | | | | | - Add some ifdef's to make the code compile. - Add ck-sysdeps-freebsd.c, based on the Linux version, which means it's using linprocfs right now. Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
* more solaris supportWilliam Jon McCann2007-08-211-6/+8
| | | | 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-3/+2
|
* add a glib message to syslog handlerWilliam Jon McCann2007-04-031-18/+12
| | | | | Also add ability to toggle debugging when SIGUSR1 is received.
* limit the use of errnoWilliam Jon McCann2007-02-191-5/+10
| | | | Try to limit the use of errno in case it can change.
* handle the no console fd case betterWilliam Jon McCann2007-02-191-10/+32
| | | | | Don't spew warnings when getfd() can't find a suitable console fd. Also add a comment to note where getfd.c comes from.
* improve thread safetyWilliam Jon McCann2007-02-191-52/+174
| | | | | | Change to using an async queue for events from VT watching threads. Add mutex protection to shared data. Compress the event queue when possible by discarding all but the most recent VT activation event.
* fix warning from missing includeWilliam Jon McCann2007-02-131-1/+1
|
* Bump thread stack size up to 64kWilliam Jon McCann2007-02-081-1/+1
| | | | | The minimum stack size 16k seems to crash glibc when we do printf in debug.
* Make threads use minimum stack size rather than the default.William Jon McCann2007-02-061-1/+1
| | | | Patch from: mclasen@redhat.com
* Initial importWilliam Jon McCann2006-10-251-0/+360