about summary refs log tree commit diff
path: root/src/pathlocks.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-08-01T14·11+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-08-01T14·11+0000
commit545145cd582cd80b857760ec11bb5a91b6271506 (patch)
treee992edea7a634ed268ac10444add5dcfac6a4f05 /src/pathlocks.hh
parent9df93f30bda81ffa3cf040c146347e02d3a56666 (diff)
* normaliseFState() now locks all output paths prior to building, thus
  ensuring that simultaneous invocations of Nix don't clobber
  each other's  builds.

* Fixed a bug in `make install'.

Diffstat (limited to 'src/pathlocks.hh')
-rw-r--r--src/pathlocks.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pathlocks.hh b/src/pathlocks.hh
new file mode 100644
index 000000000000..ae3a37cdb214
--- /dev/null
+++ b/src/pathlocks.hh
@@ -0,0 +1,18 @@
+#ifndef __PATHLOCKS_H
+#define __PATHLOCKS_H
+
+#include "util.hh"
+
+
+class PathLocks 
+{
+private:
+    list<int> fds;
+
+public:
+    PathLocks(const Strings & _paths);
+    ~PathLocks();
+};
+
+
+#endif /* !__PATHLOCKS_H */