Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcPYZ-0007l1-S4 for qemu-devel@nongnu.org; Mon, 21 Jun 2004 10:13:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcPYX-0007kV-2S for qemu-devel@nongnu.org; Mon, 21 Jun 2004 10:13:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcPYX-0007kS-0Y for qemu-devel@nongnu.org; Mon, 21 Jun 2004 10:13:53 -0400 Received: from [196.35.40.69] (helo=absamail.co.za) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BcPXA-0001DI-E3 for qemu-devel@nongnu.org; Mon, 21 Jun 2004 10:12:29 -0400 From: Bob Barry Date: Mon, 21 Jun 2004 16:14:39 +0200 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_P1u1APaGFZbbe/0" Message-Id: <200406211614.39031.bobb@absamail.co.za> Subject: [Qemu-devel] niggles Reply-To: bobb@absamail.co.za, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Boundary-00=_P1u1APaGFZbbe/0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --Boundary-00=_P1u1APaGFZbbe/0 Content-Type: text/x-diff; charset="us-ascii"; name="vl.c.ckXauth.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="vl.c.ckXauth.diff" --- /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 #include #include +#include +#include #ifdef _BSD #include #include @@ -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 --Boundary-00=_P1u1APaGFZbbe/0--