mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
* In `nix-env -i|-u|-e', lock the profile to prevent races between
concurrent nix-env operations on the same profile. Fixes NIX-7.
This commit is contained in:
parent
49de87132f
commit
588cb0eade
3 changed files with 26 additions and 6 deletions
|
@ -18,8 +18,10 @@ private:
|
|||
|
||||
public:
|
||||
PathLocks();
|
||||
PathLocks(const PathSet & paths);
|
||||
void lockPaths(const PathSet & _paths);
|
||||
PathLocks(const PathSet & paths,
|
||||
const string & waitMsg = "");
|
||||
void lockPaths(const PathSet & _paths,
|
||||
const string & waitMsg = "");
|
||||
~PathLocks();
|
||||
void setDeletion(bool deletePaths);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue