Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ./work/xorg-server-1.12.4/hw/xfree86/os-support/bsd/bsd_init.c.orig 2013-05-01 13:08:29.670438151 +0200
- +++ ./work/xorg-server-1.12.4/hw/xfree86/os-support/bsd/bsd_init.c 2013-05-01 13:09:24.252434798 +0200
- @@ -152,7 +152,7 @@
- void
- xf86OpenConsole()
- {
- - int i, fd = -1;
- + int res, i, fd = -1;
- xf86ConsOpen_t *driver;
- #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
- @@ -275,8 +275,9 @@
- vtmode.relsig = SIGUSR1;
- vtmode.acqsig = SIGUSR1;
- vtmode.frsig = SIGUSR1;
- - if (ioctl(xf86Info.consoleFd, VT_SETMODE, &vtmode) < 0) {
- - FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed");
- + res=ioctl(xf86Info.consoleFd, VT_SETMODE, &vtmode);
- + if (res < 0) {
- + FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed, res: %i\n");
- }
- #if !defined(__OpenBSD__) && !defined(USE_DEV_IO) && !defined(USE_I386_IOPL)
- if (ioctl(xf86Info.consoleFd, KDENABIO, 0) < 0) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement