diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-25 11:56:42 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-05-03 15:47:38 +0400 |
commit | 22e135fca3f2512f43d39efab49067660e365e1b (patch) | |
tree | 11bdfaec65d018ab43269a916d8233f566262381 /net/tap-solaris.c | |
parent | d640b59eb3c7925568c5b101f439b0c0e65ea313 (diff) |
Replace fcntl(O_NONBLOCK) with g_unix_set_fd_nonblocking()
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'net/tap-solaris.c')
-rw-r--r-- | net/tap-solaris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tap-solaris.c b/net/tap-solaris.c index 79919785c9..a44f8805c2 100644 --- a/net/tap-solaris.c +++ b/net/tap-solaris.c @@ -198,7 +198,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, return -1; } } - fcntl(fd, F_SETFL, O_NONBLOCK); + g_unix_set_fd_nonblocking(fd, true, NULL); return fd; } |