update proxmox-shared-memory to nix 0.24.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-06-01 15:03:27 +02:00 committed by Fabian Grünbichler
parent 376af82be7
commit bd0a7cb223
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ exclude = [ "debian" ]
[dependencies]
anyhow = "1.0"
libc = "0.2.107"
nix = "0.19.1"
nix = "0.24.1"
proxmox-sys = { path = "../proxmox-sys", version = "0.2.0" }

View File

@ -168,7 +168,7 @@ impl<T: Sized + Init> SharedMemory<T> {
match res {
Ok(_rc) => Ok(mmap),
// if someone else was faster, open the existing file:
Err(nix::Error::Sys(Errno::EEXIST)) => {
Err(Errno::EEXIST) => {
// if opening fails again now, we'll just error...
match nix::fcntl::open(path, oflag, Mode::empty()) {
Ok(fd) => {