diff options
author | Paolo Bonzini | 2016-01-19 14:13:29 +0100 |
---|---|---|
committer | Paolo Bonzini | 2016-02-09 15:45:26 +0100 |
commit | 34689e206abddac87a5217d458534e24f2a05562 (patch) | |
tree | 737d508f9eda56012b9d224775ae93ca320fd613 /configure | |
parent | memory: RCU ram_list.dirty_memory[] for safe RAM hotplug (diff) | |
download | qemu-34689e206abddac87a5217d458534e24f2a05562.tar.gz qemu-34689e206abddac87a5217d458534e24f2a05562.tar.xz qemu-34689e206abddac87a5217d458534e24f2a05562.zip |
qemu-char: Keep pty slave file descriptor open until the master is closed
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.
Signed-off-by: Ashley Jonathan <jonathan.ashley@altran.com>
Message-Id: <AC19797808C8D548ABDE0CA4A97AA30A30DEB409@XMB-DCFR-37.europe.corp.altran.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions