mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
* 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.
This commit is contained in:
parent
a0766eca27
commit
07cdfb09fb
3 changed files with 38 additions and 6 deletions
|
@ -35,7 +35,7 @@ struct FdSink : Sink
|
|||
|
||||
FdSink()
|
||||
{
|
||||
fd = 0;
|
||||
fd = -1;
|
||||
}
|
||||
|
||||
FdSink(int fd)
|
||||
|
@ -54,7 +54,7 @@ struct FdSource : Source
|
|||
|
||||
FdSource()
|
||||
{
|
||||
fd = 0;
|
||||
fd = -1;
|
||||
}
|
||||
|
||||
FdSource(int fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue