summaryrefslogtreecommitdiffhomepage
path: root/runsc/container
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-10 04:59:13 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-10 04:59:13 +0000
commit07d7f4d0572d1772fa5473f836f35e9a191d42da (patch)
treee94f17de40a4ee99643b39bbc97380e2584e5c7f /runsc/container
parent3ff22594df40a75093c4532aba800ac593cf274a (diff)
parent14fc2ddd6cb2f25482ef0d16ec5e3ffda3dd0f6e (diff)
Merge release-20210301.0-33-g14fc2ddd6 (automated)
Diffstat (limited to 'runsc/container')
-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 {