about summary refs log tree commit diff
path: root/src/libstore/remote-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-12-11T14·30+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-12-11T14·30+0000
commit07cdfb09fb74cf8e1c3c70c070ad20b5d1119fcf (patch)
treee17b07dfb5eb9861fe2df2f9f7c5247c4244bc8d /src/libstore/remote-store.hh
parenta0766eca270390c2181c7f31f27f93629b19f4a5 (diff)
* Open the connection to the daemon lazily (on demand) so that
  read-only operations (like nix-env -qa) work properly when the
  daemon isn't running.

Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r--src/libstore/remote-store.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh
index 717da73772..3d55d23d95 100644
--- a/src/libstore/remote-store.hh
+++ b/src/libstore/remote-store.hh
@@ -74,6 +74,9 @@ private:
     FdSource from;
     Pid child;
     unsigned int daemonVersion;
+    bool initialised;
+
+    void openConnection();
 
     void processStderr(Sink * sink = 0, Source * source = 0);