]> git.proxmox.com Git - mirror_qemu.git/commit
char-socket: update all ioc handlers when changing context
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 17 Aug 2018 13:52:23 +0000 (15:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:09:11 +0000 (19:09 +0200)
commitdfe9ea200ab1ba941149e90a6b3d220afc2dcc4c
tree5fb5ccd3195c92c7c8cd6fe0af38b23d82246177
parent5573f98fa66df133154529beaabf9d6a331d94bd
char-socket: update all ioc handlers when changing context

So far, tcp_chr_update_read_handler() only updated the read
handler. Let's also update the hup handler.

Factorize the code while at it. (note that s->ioc != NULL when
s->connected)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180817135224.22971-4-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
chardev/char-socket.c