summaryrefslogtreecommitdiffstats
path: root/include/qemu/timer.h
diff options
context:
space:
mode:
authorDaniel P. Berrange2017-12-22 12:08:49 +0100
committerDaniel P. Berrangé2018-03-13 19:06:06 +0100
commit30bdb3c56ddd911ab2b1629faa4ce6e883b80e2a (patch)
tree1d16d017837d0f101626771ca2c1c47180c78cce /include/qemu/timer.h
parentsockets: move fd_is_socket() into common sockets code (diff)
downloadqemu-30bdb3c56ddd911ab2b1629faa4ce6e883b80e2a.tar.gz
qemu-30bdb3c56ddd911ab2b1629faa4ce6e883b80e2a.tar.xz
qemu-30bdb3c56ddd911ab2b1629faa4ce6e883b80e2a.zip
sockets: check that the named file descriptor is a socket
The SocketAddress struct has an "fd" type, which references the name of a file descriptor passed over the monitor using the "getfd" command. We currently blindly assume the FD is a socket, which can lead to hard to diagnose errors later. This adds an explicit check that the FD is actually a socket to improve the error diagnosis. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/qemu/timer.h')
0 files changed, 0 insertions, 0 deletions