Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 248391 Details for
Bug 366981
ConsoleKit tries to find the console using keyboard ioctls that don't always work
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to use VT_ETSTATE and tty0
ConsoleKit-0.2.3-vtgetstate.patch (text/plain), 1.32 KB, created by
Peter Jones
on 2007-11-05 16:13:35 UTC
(
hide
)
Description:
patch to use VT_ETSTATE and tty0
Filename:
MIME Type:
Creator:
Peter Jones
Created:
2007-11-05 16:13:35 UTC
Size:
1.32 KB
patch
obsolete
>diff -urpN ConsoleKit-0.2.3/src/ck-sysdeps-unix.c.badaddr ConsoleKit-0.2.3/src/ck-sysdeps-unix.c >--- ConsoleKit-0.2.3/src/ck-sysdeps-unix.c.badaddr 2007-08-28 13:19:17.000000000 -0400 >+++ ConsoleKit-0.2.3/src/ck-sysdeps-unix.c 2007-10-30 18:40:55.000000000 -0400 >@@ -124,15 +124,15 @@ gboolean > ck_fd_is_a_console (int fd) > { > #ifdef __linux__ >- char arg = 0; >+ struct vt_stat vts; > #elif defined(__FreeBSD__) > int vers; > #endif > int kb_ok; > >+ errno = 0; > #ifdef __linux__ >- kb_ok = (ioctl (fd, KDGKBTYPE, &arg) == 0 >- && ((arg == KB_101) || (arg == KB_84))); >+ kb_ok = (ioctl (fd, VT_GETSTATE, &vts) == 0); > #elif defined(__FreeBSD__) > kb_ok = (ioctl (fd, CONS_GETVERS, &vers) == 0); > #else >@@ -193,6 +193,11 @@ ck_get_a_console_fd (void) > goto done; > } > >+ fd = open_a_console("/dev/tty0"); >+ if (fd >= 0) { >+ goto done; >+ } >+ > #ifdef _PATH_CONSOLE > fd = open_a_console (_PATH_CONSOLE); > if (fd >= 0) { >@@ -256,7 +261,7 @@ ck_wait_for_active_console_num (int co > errno = 0; > res = ioctl (console_fd, VT_WAITACTIVE, num); > >- g_debug ("VT_WAITACTIVE for vt %d returned %d", num, ret); >+ g_debug ("VT_WAITACTIVE for vt %d returned %d (%m)", num, res); > > if (res == ERROR) { > const char *errmsg;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 366981
: 248391