Skip to content
Commit 1c64fdbc authored by Ed Swierk's avatar Ed Swierk Committed by Paolo Bonzini
Browse files

char: drop data written to a disconnected pty



When a serial port writes data to a pty that's disconnected, drop the
data and return the length dropped. This avoids triggering pointless
retries in callers like the 16550A serial_xmit(), and causes
qemu_chr_fe_write() to write all data to the log file, rather than
logging only while a pty client like virsh console happens to be
connected.

Signed-off-by: default avatarEd Swierk <eswierk@skyportsystems.com>
Message-Id: <1485870329-79428-1-git-send-email-eswierk@skyportsystems.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f65e8212
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment