summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-03-09 20:51:53 -0800
committergVisor bot <gvisor-bot@google.com>2021-03-09 20:54:15 -0800
commit14fc2ddd6cb2f25482ef0d16ec5e3ffda3dd0f6e (patch)
tree1e0b01634253fedb8586b3c5078b50cde131ddf9 /runsc
parente0e04814b40f1d4077d1cf6001395bd6a919b288 (diff)
Update flock to v0.8.0
PiperOrigin-RevId: 361962416
Diffstat (limited to 'runsc')
-rw-r--r--runsc/container/state_file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/container/state_file.go b/runsc/container/state_file.go
index 4ed73eb84..0399903a0 100644
--- a/runsc/container/state_file.go
+++ b/runsc/container/state_file.go
@@ -245,7 +245,7 @@ type StateFile struct {
// lock globally locks all locking operations for the container.
func (s *StateFile) lock() error {
s.once.Do(func() {
- s.flock = flock.NewFlock(s.lockPath())
+ s.flock = flock.New(s.lockPath())
})
if err := s.flock.Lock(); err != nil {