qemu/chardev
Ed Swierk 1c64fdbc81 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: Ed Swierk <eswierk@skyportsystems.com>
Message-Id: <1485870329-79428-1-git-send-email-eswierk@skyportsystems.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-02-16 14:06:55 +01:00
..
char-console.c char: move console in its own file 2017-01-31 23:31:21 +04:00
char-fd.c char: move fd chardev in its own file 2017-01-31 23:31:21 +04:00
char-fd.h char: move fd chardev in its own file 2017-01-31 23:31:21 +04:00
char-file.c char: move file chardev in its own file 2017-01-31 23:31:21 +04:00
char-io.c char: move QIOChannel-related stuff to char-io.h 2017-01-31 23:31:20 +04:00
char-io.h char: move QIOChannel-related stuff to char-io.h 2017-01-31 23:31:20 +04:00
char-mux.c char: move mux to its own file 2017-01-31 23:31:20 +04:00
char-mux.h char: move mux to its own file 2017-01-31 23:31:20 +04:00
char-null.c char: move null chardev to its own file 2017-01-31 23:31:20 +04:00
char-parallel.c char: move parallel chardev in its own file 2017-01-31 23:31:21 +04:00
char-parallel.h char: move parallel chardev in its own file 2017-01-31 23:31:21 +04:00
char-pipe.c char: move pipe chardev in its own file 2017-01-31 23:31:21 +04:00
char-pty.c char: drop data written to a disconnected pty 2017-02-16 14:06:55 +01:00
char-ringbuf.c char: move ringbuf/memory to its own file 2017-01-31 23:31:20 +04:00
char-serial.c char: move serial chardev to its own file 2017-01-31 23:31:21 +04:00
char-serial.h char: move serial chardev to its own file 2017-01-31 23:31:21 +04:00
char-socket.c qemu-char: socket backend: disconnect on write error 2017-02-16 14:06:55 +01:00
char-stdio.c char: move stdio in its own file 2017-01-31 23:31:21 +04:00
char-udp.c char: move udp chardev in its own file 2017-01-31 23:31:21 +04:00
char-win-stdio.c char: move win-stdio into its own file 2017-01-31 23:31:21 +04:00
char-win-stdio.h char: move win-stdio into its own file 2017-01-31 23:31:21 +04:00
char-win.c char: move win chardev base class in its own file 2017-01-31 23:31:21 +04:00
char-win.h char: move win chardev base class in its own file 2017-01-31 23:31:21 +04:00
char.c char: headers clean-up 2017-01-31 23:31:22 +04:00
Makefile.objs char: move parallel chardev in its own file 2017-01-31 23:31:21 +04:00