From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIYaL-00035e-MD for qemu-devel@nongnu.org; Mon, 11 Jan 2016 04:16:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIYaK-000050-Jo for qemu-devel@nongnu.org; Mon, 11 Jan 2016 04:16:21 -0500 Sender: Paolo Bonzini References: From: Paolo Bonzini Message-ID: <569372DC.5020606@redhat.com> Date: Mon, 11 Jan 2016 10:16:12 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ashley Jonathan , "qemu-devel@nongnu.org" Cc: "qemu-trivial@nongnu.org" On 11/12/2015 12:29, Ashley Jonathan wrote: > I have experienced a minor difficulty using QEMU with the "-serial > pty" option: > > If a process opens the slave pts device, writes data to it, then > immediately closes it, the data doesn't reliably get delivered to the > emulated serial port. This seems to be because a read of the master > pty device returns EIO on Linux if no process has the pts device > open, even when data is waiting "in the pipe". > > A fix seems to be for QEMU to keep the pts file descriptor open until > the pty is closed, as per the below patch. You need to include a "Signed-off-by: Ashley Jonathan " line in the commit message, meaning that you have read and understood the "Developer Certificate of Origin": http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=f6f94e2ab1b33f0082ac22d71f66385a60d8157f#n297 Just reply to this message with the above line. Paolo