diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-14 00:05:04 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-14 00:05:04 +0100 |
commit | 7a472a76d4dcbbd0eb7832c0bdcb120d32881e8b (patch) | |
tree | ae0c8e77b6b89239dea45b62918f0ba42c651f5c /src/nix/main.cc | |
parent | 28ef6ebf914792f9e543e9778248f06e716a859d (diff) |
Add 'nix daemon' command
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 398526020..418396280 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -52,6 +52,7 @@ static bool haveInternet() } std::string programPath; +char * * savedArgv; struct NixArgs : virtual MultiCommand, virtual MixCommonArgs { @@ -232,6 +233,8 @@ static auto rCmdHelp = registerCommand<CmdHelp>("help"); void mainWrapped(int argc, char * * argv) { + savedArgv = argv; + /* The chroot helper needs to be run before any threads have been started. */ if (argc > 0 && argv[0] == chrootHelperName) { |