aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-05-29 20:46:51 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-05-29 20:46:51 +0000
commit58b4198ed8134ec246c0d0689ac46667fc389a97 (patch)
tree7c91d7dc15ad9ab005b98ee90c095f44d9beaed3 /src
parentd764409d9714562f74b378f3eea666528aae3130 (diff)
* Disable the concurrent garbage collector on Cygwin for now.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/gc.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index dc0b078e5..42b862aac 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -108,6 +108,10 @@ static AutoCloseFD fdTempRoots;
void addTempRoot(const Path & path)
{
+#ifdef __CYGWIN__
+ return;
+#endif
+
/* Create the temporary roots file for this process. */
if (fdTempRoots == -1) {
@@ -172,6 +176,10 @@ typedef list<FDPtr> FDs;
static void readTempRoots(PathSet & tempRoots, FDs & fds)
{
+#ifdef __CYGWIN__
+ return;
+#endif
+
/* Read the `temproots' directory for per-process temporary root
files. */
Strings tempRootFiles = readDirectory(