mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
c76bf6bb8f
commit
cdaa86a54b
2 changed files with 22 additions and 0 deletions
|
@ -83,6 +83,7 @@ struct CharDriverState {
|
|||
int avail_connections;
|
||||
int is_mux;
|
||||
guint fd_in_tag;
|
||||
guint fd_hup_tag;
|
||||
QemuOpts *opts;
|
||||
QTAILQ_ENTRY(CharDriverState) next;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue