mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Fixes flock(fd, LOCK_UN) emulation on Solaris.
Follow up fix for #11421.
This commit is contained in:
parent
4a8d17e236
commit
f28b77c4ad
@ -406,7 +406,7 @@ mod sys {
|
||||
l_pad: [0, 0, 0, 0],
|
||||
};
|
||||
flock.l_type = if flag & libc::LOCK_UN != 0 {
|
||||
libc::F_RDLCK
|
||||
libc::F_UNLCK
|
||||
} else if flag & libc::LOCK_EX != 0 {
|
||||
libc::F_WRLCK
|
||||
} else if flag & libc::LOCK_SH != 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user