Advertisement
gusibsd

Untitled

May 1st, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. --- ./work/xorg-server-1.12.4/hw/xfree86/os-support/bsd/bsd_init.c.orig 2013-05-01 13:08:29.670438151 +0200
  2. +++ ./work/xorg-server-1.12.4/hw/xfree86/os-support/bsd/bsd_init.c 2013-05-01 13:09:24.252434798 +0200
  3. @@ -152,7 +152,7 @@
  4. void
  5. xf86OpenConsole()
  6. {
  7. - int i, fd = -1;
  8. + int res, i, fd = -1;
  9. xf86ConsOpen_t *driver;
  10.  
  11. #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
  12. @@ -275,8 +275,9 @@
  13. vtmode.relsig = SIGUSR1;
  14. vtmode.acqsig = SIGUSR1;
  15. vtmode.frsig = SIGUSR1;
  16. - if (ioctl(xf86Info.consoleFd, VT_SETMODE, &vtmode) < 0) {
  17. - FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed");
  18. + res=ioctl(xf86Info.consoleFd, VT_SETMODE, &vtmode);
  19. + if (res < 0) {
  20. + FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed, res: %i\n");
  21. }
  22. #if !defined(__OpenBSD__) && !defined(USE_DEV_IO) && !defined(USE_I386_IOPL)
  23. if (ioctl(xf86Info.consoleFd, KDENABIO, 0) < 0) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement