]> git.proxmox.com Git - mirror_qemu.git/commit
chardev: fix fd_chr_add_watch() when in != out
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 4 Aug 2021 11:08:46 +0000 (15:08 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 5 Aug 2021 12:15:33 +0000 (16:15 +0400)
commitbb2b058f1a4e4fe9031133f2f7876fb12b2104d7
treea2139984924b41b971ef12e8756400d0d39f3822
parentbf7b1eab252bc56b6bbb12a8909eae738435d6ae
chardev: fix fd_chr_add_watch() when in != out

Create child sources for the different streams, and dispatch on the
parent source with the synthesized conditions.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
chardev/char-fd.c