commit | 733ba020846ccd21d832f2e9b62387a86c5ab8f1 | [log] [tgz] |
---|---|---|
author | Marc-André Lureau <marcandre.lureau@redhat.com> | Fri Jul 23 13:59:50 2021 +0400 |
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | Thu Aug 05 16:15:33 2021 +0400 |
tree | 3ae53a9587fed486137cee0cd6d13e9fbe3edf02 | |
parent | 46fe3ff6ea3e7a642b8545c0322ef5df873bd560 [diff] |
chardev: fix qemu_chr_open_fd() with fd_in==fd_out The "serial" chardev calls qemu_chr_open_fd() with the same fd. This may lead to double-close as each QIOChannel owns the fd. Instead, share the reference to the same QIOChannel. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>