mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 07:22:43 +01:00
* Automatically recover the database in case of a crash.
This commit is contained in:
parent
1d61e473c8
commit
c190f051ac
6 changed files with 204 additions and 41 deletions
|
|
@ -4,6 +4,11 @@
|
|||
#include "util.hh"
|
||||
|
||||
|
||||
typedef enum LockType { ltRead, ltWrite, ltNone };
|
||||
|
||||
bool lockFile(int fd, LockType lockType, bool wait);
|
||||
|
||||
|
||||
class PathLocks
|
||||
{
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue