Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2016-02-12 Thread Marc-André Lureau
Hi On Fri, Feb 12, 2016 at 3:29 AM, Marc-André Lureau wrote: > Hi > > On Mon, Jan 11, 2016 at 10:13 AM, Paolo Bonzini wrote: >> >> >> On 11/01/2016 09:33, Michael Tokarev wrote: >>> 11.12.2015 14:29, Ashley Jonathan wrote: I have experienced a minor difficulty using QEMU with the "-serial p

Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2016-02-11 Thread Marc-André Lureau
Hi On Mon, Jan 11, 2016 at 10:13 AM, Paolo Bonzini wrote: > > > On 11/01/2016 09:33, Michael Tokarev wrote: >> 11.12.2015 14: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

Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2016-01-11 Thread Ashley Jonathan
Apologies; I overlooked that detail: Signed-off-by: Ashley Jonathan Regards, -- Jon Ashley -Original Message- From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo Bonzini Sent: 11 January 2016 09:16 To: Ashley Jonathan; qemu-devel@nongnu.org Cc: qemu-triv...@nongnu.or

Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2016-01-11 Thread Paolo Bonzini
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. Thi

Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2016-01-11 Thread Paolo Bonzini
On 11/01/2016 09:33, Michael Tokarev wrote: > 11.12.2015 14: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

Re: [Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2016-01-11 Thread Michael Tokarev
11.12.2015 14: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

[Qemu-devel] [PATCH] Keep pty slave file descriptor open until the master is closed

2015-12-11 Thread Ashley Jonathan
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 re