[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] char: drop data written to a disconnected pty
From: |
Ed Swierk |
Subject: |
Re: [Qemu-devel] [PATCH] char: drop data written to a disconnected pty |
Date: |
Tue, 31 Jan 2017 14:19:12 -0800 |
On Tue, Jan 31, 2017 at 6:06 AM, Marc-André Lureau <address@hidden> wrote:
> I think this can be confusing if some backends silently drop the data (under
> disconnected state), while other don't. Perhaps we should have instead a new
> common chardev property "hup-drop" ? (suggestions for better name welcome)
Either way, when a pty is disconnected data will get dropped, whether
by the pty backend (as proposed) or by the serial port device or other
frontend (as currently).
The only difference from a user's perspective is whether the dropped
data gets written to the log file, which is the main motivation for
this change. The backward compatibility concern would be an existing
application that relies on data not being logged when the pty is
disconnected.
--Ed