update proxmox-shared-memory to nix 0.24.1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
376af82be7
commit
bd0a7cb223
@ -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" }
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user