Implement lock.Open() to fix #5642 (#6150)

master
Stefan Husch 7 years ago committed by kannappanr
parent a1ef90be52
commit 914c76a801
  1. 5
      pkg/lock/lock_solaris.go

@ -98,3 +98,8 @@ func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, er
func LockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) {
return lockedOpenFile(path, flag, perm, syscall.F_SETLKW)
}
// Open - Call os.OpenFile
func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
return os.OpenFile(path, flag, perm)
}

Loading…
Cancel
Save