From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CG5Bc-0004Fu-W2 for qemu-devel@nongnu.org; Fri, 08 Oct 2004 20:34:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CG5Bb-0004Ex-SB for qemu-devel@nongnu.org; Fri, 08 Oct 2004 20:34:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CG5Bb-0004En-Nm for qemu-devel@nongnu.org; Fri, 08 Oct 2004 20:34:11 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CG4pJ-00020b-27 for qemu-devel@nongnu.org; Fri, 08 Oct 2004 20:11:09 -0400 Received: from [151.189.21.46] (helo=mail-in-01.arcor-online.net) by mx20.gnu.org with esmtp (Exim 4.34) id 1CG1X5-0003x1-VI for qemu-devel@nongnu.org; Fri, 08 Oct 2004 16:40:08 -0400 Received: from rih.NotaMusica.com (dsl-084-057-050-210.arcor-ip.net [84.57.50.210]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 0BBCD35139 for ; Fri, 8 Oct 2004 22:39:16 +0200 (CEST) Received: from hatatitla.NotaMusica.com (root@hatatitla.NotaMusica.com [192.168.1.4]) by rih.NotaMusica.com (8.12.3/8.12.3/Debian-7.1) with ESMTP id i98KdEK4000590 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Fri, 8 Oct 2004 22:39:14 +0200 Received: from hatatitla.NotaMusica.com (jmartin@localhost [127.0.0.1]) by hatatitla.NotaMusica.com (8.12.3/8.12.3/Debian-7.1) with ESMTP id i98KdDAd003341 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 8 Oct 2004 22:39:13 +0200 Received: from localhost (jmartin@localhost) by hatatitla.NotaMusica.com (8.12.3/8.12.3/Debian-7.1) with ESMTP id i98KdD9c003336 for ; Fri, 8 Oct 2004 22:39:13 +0200 Date: Fri, 8 Oct 2004 22:39:12 +0200 (CEST) From: Johannes Martin Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811071-1050409095-1097267952=:1937" Subject: [Qemu-devel] patch: make -serial pty not print garbage Reply-To: 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1463811071-1050409095-1097267952=:1937 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, qemu .... -serial pty does not work correctly. When trying to say char device redirected to /dev/pts/ it prints garbage instead of /dev/pts/n. This is because it calls slirp's openpty() function instead of the system's proper openpty(). The attached patch fixes this (by making slirp's openpty() static). Johannes ---1463811071-1050409095-1097267952=:1937 Content-Type: APPLICATION/octet-stream; name="pty.tar.gz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="pty.tar.gz" H4sIAH/6ZkEAA+1XS2/bMAzONf4VHHZYY+ThZ7yl24Biu+zUYS2wY6DKSq3V r0pKlmzAfvsoO07zaJdDkaxF9SHxQ6RIWp9I2qVaDFoHhuMEXhSGeHbcKHTW zw1aruP6bhiF7tBvOS5eBS0IDx2YxlQqIgBaPzIiFM8f1Nsnf6YokX/890ui aHIgH47rOMMgeIh/Lxyu+A8iN0J9P/D9FjgHimcDL5z/L3nM5iOQKRflIOOS 9qn14fGwvn26gAlP2QgGdCZFUajBLcum9WHdW3dmCaYEZzOeX4PAk+RFDm7f t2I+mUCPQk/gHSyDs217I9p2CBesBA+LDHj+yHVG3hB6el+1tY1er7ep/hbO qVqqOyM/GAVura4tr6Py5HnDrud7UA0A4O81SyXTl6+A5wovipLlmEE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