k3s/pkg/util/flock
Yifan Gu a489bd2674 pkg/util/flock: Fix the flock so it actually locks.
With this PR, the second call to `Acquire()` will block unless the lock is released (process exits).
Also removed the memory mutex in the previous code since we don't need `Release()` here so no need to save and protect the local fd.

Fix #42929.
2017-03-13 14:24:59 -07:00
..
BUILD pkg/util/flock: Fix the flock so it actually locks. 2017-03-13 14:24:59 -07:00
flock_other.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flock_unix.go pkg/util/flock: Fix the flock so it actually locks. 2017-03-13 14:24:59 -07:00