]> git.proxmox.com Git - mirror_qemu.git/commit
Add G_IO_HUP handler for socket chardev
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Tue, 27 May 2014 12:04:28 +0000 (15:04 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:55 +0000 (16:41 +0300)
commitcdaa86a54b232572bba594bf87a7416e527e460c
treed2bcb7220050a382144ed4003da157392a5f9600
parentc76bf6bb8fbbb233a7d3641e09229d23747d5ee3
Add G_IO_HUP handler for socket chardev

This is used to detect that the remote end has disconnected. Just call
tcp_char_disconnect on receiving this event.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/sysemu/char.h
qemu-char.c