qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] niggles
@ 2004-06-21 14:14 Bob Barry
  2004-06-24 11:52 ` [Qemu-devel] Re: qemu - patch to restore tty flags Hetz Ben Hamo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bob Barry @ 2004-06-21 14:14 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

I'm generally amazed and impressed by qemu, but I've noticed a couple of
user-unfriendly quirks which should be eliminated:

1 - If I su to root and invoke qemu without remembering to "xhost +" first,
     the screen goes black, the keyboard is completely unresponsive, and
     I cannot go to a terminal session or kill the X-server.  Attached patch
     vi.c.ckXauth.diff causes quemu to show error and exit gracefully instead
     of locking the machine.

2 - After using qemu and exiting normally, if I try "su", I get:
        asterix:msdos> su - toor
        Password: 

        su: Authentication failure
        Sorry.
     I ran "env > ~/env_before_qemu" before running a qemu session, and
     "env > ~/env_after_qemu" after exiting the session, and found the
     before and after files identical.  The host is Gentoo Linux, kernel 2.6.7.
     Can someone suggest how to find (and restore) what's been changed?

Thanks,

Bob Barry






[-- Attachment #2: vl.c.ckXauth.diff --]
[-- Type: text/x-diff, Size: 735 bytes --]

--- /usr/portage/distfiles/cvs-src/qemu/vl.c	2004-06-21 07:26:53.000000000 +0200
+++ vl.c	2004-06-21 13:23:02.009842912 +0200
@@ -38,6 +38,8 @@
 #include <sys/mman.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
+#include <X11/Xlib.h>
+#include <X11/Xlibint.h>
 #ifdef _BSD
 #include <sys/stat.h>
 #include <libutil.h>
@@ -2654,6 +2656,15 @@
     if (nographic) {
         dumb_display_init(ds);
     } else {
+        Display *dpy;
+	dpy = XOpenDisplay(NULL);
+	if (!dpy) {
+            fprintf (stderr, "%s:  unable to open display \"%s\".\n",
+            argv[0], XDisplayName(NULL));
+            exit (1);
+        } else {
+            XCloseDisplay(dpy);
+        }
 #ifdef CONFIG_SDL
         sdl_display_init(ds);
 #else

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-27 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-21 14:14 [Qemu-devel] niggles Bob Barry
2004-06-24 11:52 ` [Qemu-devel] Re: qemu - patch to restore tty flags Hetz Ben Hamo
2004-06-26 18:06 ` [Qemu-devel] qemu - patch to check X authorization Jim C. Brown
2004-06-27  7:48   ` Bob Barry
2004-06-27 17:42     ` Jim C. Brown
2004-06-26 18:11 ` [Qemu-devel] qemu - patch to restore tty flags Jim C. Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).