diff options
| author | Daniel P. Berrange | 2016-10-26 18:20:20 +0200 |
|---|---|---|
| committer | Daniel P. Berrange | 2016-10-27 09:13:00 +0200 |
| commit | bf5352082727df7207c54cf3fc5fb608dc2b1fda (patch) | |
| tree | 515c46e2c2b3f23810466f578b8d6b907b2286a0 /include/io | |
| parent | io: Introduce a qio_channel_set_feature() helper (diff) | |
| download | qemu-bf5352082727df7207c54cf3fc5fb608dc2b1fda.tar.gz qemu-bf5352082727df7207c54cf3fc5fb608dc2b1fda.tar.xz qemu-bf5352082727df7207c54cf3fc5fb608dc2b1fda.zip | |
io: set LISTEN flag explicitly for listen sockets
The SO_ACCEPTCONN ioctl is not portable across OS, with
some BSD versions and OS-X not supporting it. There is
no viable alternative to this, so instead just set the
feature explicitly when creating a listener socket.
The current users of qio_channel_socket_new_fd() won't
ever be given a listening socket, so there's no problem
with no auto-detecting it in this scenario
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/io')
0 files changed, 0 insertions, 0 deletions
