diff options
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 3 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/lib.rs | 3 |
6 files changed, 11 insertions, 9 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index c3a6da8..4fc9144 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,5 @@ { "git": { - "sha1": "c24bde75d75afb29563cc465f4c3e2cedfea69b9" + "sha1": "56852d4006efce337875594e6a21ec49f0fc9c89" } } @@ -1,4 +1,5 @@ // This file is generated by cargo2android.py --run --device --dependencies. +// Do not modify this file as changes will be overridden on upgrade. package { default_applicable_licenses: ["external_rust_crates_vsock_license"], @@ -32,5 +33,5 @@ rust_library { // dependent_library ["feature_list"] // bitflags-1.2.1 "default" // cfg-if-1.0.0 -// libc-0.2.86 "default,extra_traits,std" +// libc-0.2.97 "default,extra_traits,std" // nix-0.19.1 @@ -13,7 +13,7 @@ [package] edition = "2018" name = "vsock" -version = "0.2.3" +version = "0.2.4" authors = ["fsyncd", "rust-vsock"] exclude = ["test_fixture"] description = "Virtio socket support for Rust" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index afe8103..aa90128 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "vsock" -version = "0.2.3" +version = "0.2.4" authors = ["fsyncd", "rust-vsock"] description = "Virtio socket support for Rust" repository = "https://github.com/rust-vsock/vsock-rs" @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/vsock/vsock-0.2.3.crate" + value: "https://static.crates.io/crates/vsock/vsock-0.2.4.crate" } - version: "0.2.3" + version: "0.2.4" license_type: NOTICE last_upgrade_date { year: 2021 - month: 2 - day: 9 + month: 6 + day: 21 } } @@ -134,10 +134,11 @@ impl VsockListener { }; let mut vsock_addr_len = size_of::<sockaddr_vm>() as socklen_t; let socket = unsafe { - accept( + accept4( self.socket, &mut vsock_addr as *mut _ as *mut sockaddr, &mut vsock_addr_len, + SOCK_CLOEXEC, ) }; if socket < 0 { |