Commit Graph

4 Commits

Author SHA1 Message Date
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
guangxuli
05d0c720f1 the lockfile should be handled after function return 2016-09-15 21:02:55 +08:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Mike Danese
b3172a4ccf kubelet: add a pidfile 2016-02-10 11:38:50 -08:00