3 Commits
Author SHA1 Message Date
Jonathan Boulle 9685f37575 *: adjust copyright header
Inspired by a similar change in the Kubernetes project [1], this changes
the copyright header to the more generic "The rkt Authors" rather than
"CoreOS, Inc.", which is only sometimes correct.

https://github.com/GoogleCloudPlatform/kubernetes/commit/6b3a6e6b983f967c88d14d26542ec6e30c49ebd3
2015-05-03 14:29:15 -07:00
Simone Gotti 6530acf8e0 lock: add missing closes in keylock.
* the keylock FileLock wasn't closed on error in createAndLock
* fd for changed file detection wasn't closed.
2015-04-15 12:04:45 +02:00
Simone Gotti c7e19e85f3 lock: add lock functions to lock by specific keys.
This adds a KeyLock struct and related functions trying to keep the same
semantic of DirLock.

KeyLock is a lock for a specific key. The lock file is created inside a
directory using the key name.
This is useful when multiple processes want to take a lock but cannot use
FileLock as they don't have a well defined file on the filesystem.

For example it's needed for image file locking and in future for download locking
2015-03-26 14:09:10 +01:00