From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BeHef-0000QV-Dp for qemu-devel@nongnu.org; Sat, 26 Jun 2004 14:11:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BeHee-0000Q6-FC for qemu-devel@nongnu.org; Sat, 26 Jun 2004 14:11:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BeHee-0000Q3-DK for qemu-devel@nongnu.org; Sat, 26 Jun 2004 14:11:56 -0400 Received: from [38.113.3.61] (helo=babyruth.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BeHc7-0003ch-5j for qemu-devel@nongnu.org; Sat, 26 Jun 2004 14:09:19 -0400 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id 4B98763DAD4 for ; Sat, 26 Jun 2004 17:28:28 +0000 (UTC) Date: Sat, 26 Jun 2004 14:06:21 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] qemu - patch to check X authorization Message-ID: <20040626180621.GB18324@jbrown.mylinuxbox.org> References: <200406211614.39031.bobb@absamail.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406211614.39031.bobb@absamail.co.za> Reply-To: jbrown106@swift-mail.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bobb@absamail.co.za, qemu-devel@nongnu.org On Fri, Jun 25, 2004 at 09:12:19AM +0200, Bob Barry wrote: > Hetz - > > The following has been submitted twice before, but seems to have > passed unnoticed: > > 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. The following patch > causes qemu to display an error message and exit gracefully instead of > locking the machine. The patch is against 20040625 CVS. It works on > Gentoo x86 Linux, kernel 2.6.7; I can't test other distributions or architectures. > > Thanks, > > Bob Barry > That doesn't happen to me. When I try that, I get a few messages from Xlib saying that it can't open the X server and then a message from SDL saying that its quitting. I don't have the problem that you do. Your patch requires that the user must have X and assumes that SDL uses X/Xv. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.