diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-27 10:10:43 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-04-02 11:47:37 -0400 |
commit | f9e8cacc5557e4372401da74141f833fcacda038 (patch) | |
tree | 59218a3c4167dd06d03a7a42388810efb3049c0d /block | |
parent | 5d45de9796539f95eb6b1201588362981f8cb2d4 (diff) |
oslib-posix: rename socket_set_nonblock() to qemu_set_nonblock()
The fcntl(fd, F_SETFL, O_NONBLOCK) flag is not specific to sockets.
Rename to qemu_set_nonblock() just like qemu_set_cloexec().
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/nbd.c | 2 | ||||
-rw-r--r-- | block/sheepdog.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/block/nbd.c b/block/nbd.c index 3d711b2735..eff683c8df 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -415,7 +415,7 @@ static int nbd_establish_connection(BlockDriverState *bs) /* Now that we're connected, set the socket to be non-blocking and * kick the reply mechanism. */ - socket_set_nonblock(sock); + qemu_set_nonblock(sock); qemu_aio_set_fd_handler(sock, nbd_reply_ready, NULL, nbd_have_request, s); diff --git a/block/sheepdog.c b/block/sheepdog.c index bb67c4c071..987018e20c 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -471,7 +471,7 @@ static int connect_to_sdog(BDRVSheepdogState *s) qerror_report_err(err); error_free(err); } else { - socket_set_nonblock(fd); + qemu_set_nonblock(fd); } return fd; |