socket shutdown
commite1a8c9b67fc97d293211773edcae9e8e2f3367ab
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 8 Jan 2015 11:11:30 +0000 (8 11:11 +0000)
committerAmit Shah <amit.shah@redhat.com>
Fri, 16 Jan 2015 07:36:17 +0000 (16 13:06 +0530)
treebe5d5c5c0e26818e16489bb0d12f0d3fc7cca5a5
parent8580b06498a5dffe554e7ac627726b1d7775c591
socket shutdown

Add QEMUFile interface to allow a socket to be 'shut down' - i.e. any
reads/writes will fail (and any blocking read/write will be woken).

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
include/migration/qemu-file.h
include/qemu/sockets.h
migration/qemu-file-unix.c
migration/qemu-file.c