summaryrefslogtreecommitdiffstats
path: root/src/getfd.c
Commit message (Collapse)AuthorAgeFilesLines
* add a vt monitor test, move getfd to sysdeps, add a check for the root userWilliam Jon McCann2007-08-171-97/+0
|
* add some solaris supportWilliam Jon McCann2007-08-141-3/+17
| | | | Based on a patch from Brian Cameron.
* a few fixes for getfd suggested by LennartWilliam Jon McCann2007-05-151-4/+12
| | | | | | | | | | | | | | | | | | | | | | I am currently investigating how to best integrate PulseAudio with ConsoleKit/PolicyKit. While doing that I had a look on your code, and found a few issues in getfd.c I'd like to report, before I forget them. I couldn't find any bugzilla with at consolekit project (neither fedora, nor fdo, nor gnome?) hence I am mailing you in person. In getfd.c in open_a_console() a close() is missing if is_a_console is missing. The open() in open_a_console() should probably use O_NOCTTY. Otherwise C-c on the console might end up in a SIGINT to your daemon process! Also I'd add an isatty() check to is_a_console(), to makes sure that you're actually talking to a TTY before you issue KDGKBTYPE on it. ioctl()s are unfortunately not unique, hence i'd recommend that check. That's it, Lennart
* use paths.h if availableWilliam Jon McCann2007-03-061-7/+21
|
* handle the no console fd case betterWilliam Jon McCann2007-02-191-0/+6
| | | | | Don't spew warnings when getfd() can't find a suitable console fd. Also add a comment to note where getfd.c comes from.
* fix compiler warningWilliam Jon McCann2007-02-151-3/+6
|
* Initial importWilliam Jon McCann2006-10-251-0/+52