diff options
| author | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2025-09-16 16:13:56 +0300 |
|---|---|---|
| committer | Daniel P. Berrangé <berrange@redhat.com> | 2025-09-19 12:46:07 +0100 |
| commit | 09759245cf762d2fed4259494ec31198ac1ec0f4 (patch) | |
| tree | 9fb01f81935ed18a58d79033cfccc1bba98c7733 /util/oslib-win32.c | |
| parent | 8cb17f9c36f3f92a4f653a0b369ec7ab82ccf5f0 (diff) | |
| download | focaccia-qemu-09759245cf762d2fed4259494ec31198ac1ec0f4.tar.gz focaccia-qemu-09759245cf762d2fed4259494ec31198ac1ec0f4.zip | |
util: drop qemu_socket_try_set_nonblock()
Now we can use qemu_set_blocking() in these cases. Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'util/oslib-win32.c')
| -rw-r--r-- | util/oslib-win32.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c index 1566eb57e7..bf5d478c5c 100644 --- a/util/oslib-win32.c +++ b/util/oslib-win32.c @@ -202,15 +202,6 @@ void qemu_socket_set_block(int fd) ioctlsocket(fd, FIONBIO, &opt); } -int qemu_socket_try_set_nonblock(int fd) -{ - unsigned long opt = 1; - if (ioctlsocket(fd, FIONBIO, &opt) != NO_ERROR) { - return -socket_error(); - } - return 0; -} - int socket_set_fast_reuse(int fd) { /* Enabling the reuse of an endpoint that was used by a socket still in |