Initial commit (code only without large binaries)
This commit is contained in:
9
EdgeNode/internal/caches/storage_utils_unix.go
Normal file
9
EdgeNode/internal/caches/storage_utils_unix.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !windows
|
||||
|
||||
package caches
|
||||
|
||||
import "syscall"
|
||||
|
||||
func tryLockFile(fd int) error {
|
||||
return syscall.Flock(fd, syscall.LOCK_EX|syscall.LOCK_NB)
|
||||
}
|
||||
Reference in New Issue
Block a user