Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-08-13 | Refactor option handling | Eelco Dolstra | 1 | -11/+22 | |
2014-08-05 | Doh | Eelco Dolstra | 1 | -2/+2 | |
2014-08-04 | Move some options out of globals | Eelco Dolstra | 1 | -0/+3 | |
2014-07-24 | Remove some dead code | Eelco Dolstra | 1 | -9/+0 | |
2014-07-23 | Pass -pthread only for programs that need it | Eelco Dolstra | 1 | -0/+2 | |
2014-07-23 | nix-daemon: Less verbosity | Eelco Dolstra | 1 | -1/+1 | |
2014-07-23 | nix-daemon: Simplify stderr handling | Eelco Dolstra | 1 | -7/+1 | |
2014-07-23 | nix-daemon: Use a thread instead of SIGPOLL to catch client disconnects | Eelco Dolstra | 1 | -146/+7 | |
The thread calls poll() to wait until a HUP (or other error event) happens on the client connection. If so, it sends SIGINT to the main thread, which is then cleaned up normally. This is much nicer than messing around with SIGPOLL. | |||||
2014-07-19 | Revert old useBuildHook behaviour | Eelco Dolstra | 1 | -1/+1 | |
2014-07-17 | nix-daemon: Add trusted-users and allowed-users options | Eelco Dolstra | 1 | -3/+35 | |
‘trusted-users’ is a list of users and groups that have elevated rights, such as the ability to specify binary caches. It defaults to ‘root’. A typical value would be ‘@wheel’ to specify all users in the wheel group. ‘allowed-users’ is a list of users and groups that are allowed to connect to the daemon. It defaults to ‘*’. A typical value would be ‘@users’ to specify the ‘users’ group. | |||||
2014-07-17 | nix-daemon: Show name of connecting user | Eelco Dolstra | 1 | -6/+7 | |
2014-07-17 | nix-daemon: Only print connection info if we have SO_PEERCRED | Eelco Dolstra | 1 | -9/+12 | |
2014-07-17 | nix-daemon: Fix compat with older clients | Eelco Dolstra | 1 | -1/+1 | |
2014-07-10 | Refactoring: Move all fork handling into a higher-order function | Eelco Dolstra | 1 | -32/+19 | |
C++11 lambdas ftw. | |||||
2014-06-10 | Report daemon OOM better | Eelco Dolstra | 1 | -4/+2 | |
When copying a large path causes the daemon to run out of memory, you now get: error: Nix daemon out of memory instead of: error: writing to file: Broken pipe | |||||
2014-04-03 | Fix compile errors on Illumos | Danny Wilson | 1 | -0/+4 | |
2014-03-30 | boost::shared_ptr -> std::shared_ptr | Eelco Dolstra | 1 | -1/+1 | |
2014-03-18 | Fix tabs | Eelco Dolstra | 1 | -6/+6 | |
2014-03-18 | Allow recovery from isValidPath RPCs with an invalid path | Ludovic Courtès | 1 | -1/+7 | |
Currently, clients cannot recover from an isValidPath RPC with an invalid path parameter because the daemon closes the connection when that happens. More precisely: 1. in performOp, wopIsValidPath case, ‘readStorePath’ raises an ‘Error’ exception; 2. that exception is caught by the handler in ‘processConnection’; 3. the handler determines errorAllowed == false, and thus exits after sending the message. This last part is fixed by calling ‘startWork’ early on, as in the patch below. The same reasoning could be applied to all the RPCs that take one or more store paths as inputs, but isValidPath is, by definition, likely to be passed invalid paths in the first place, so it’s important for this one to allow recovery. | |||||
2014-03-17 | Fix -j and other flags when using the daemon | Eelco Dolstra | 1 | -6/+6 | |
2014-02-26 | Simplify getting use-ssh-substituter from untrusted users | Eelco Dolstra | 1 | -2/+3 | |
2014-02-01 | Remove Automakefiles | Eelco Dolstra | 1 | -12/+0 | |
2014-02-01 | Update Makefile variable names | Eelco Dolstra | 1 | -1/+1 | |
2014-01-30 | Rename Makefile -> local.mk | Eelco Dolstra | 1 | -0/+0 | |
2014-01-30 | Install nix-worker symlink | Eelco Dolstra | 1 | -0/+2 | |
2014-01-09 | Update Makefiles | Eelco Dolstra | 1 | -1/+1 | |
2013-11-25 | Rename Makefile.new -> Makefile | Eelco Dolstra | 1 | -0/+0 | |
2013-11-22 | Rename $(here) to $(d) for brevity, and remove trailing slash | Eelco Dolstra | 1 | -1/+1 | |
2013-11-22 | New non-recursive, plain Make-based build system | Eelco Dolstra | 1 | -0/+7 | |
2013-10-02 | Report OOM errors better | Eelco Dolstra | 1 | -1/+5 | |
2013-10-02 | Fix typo | Eelco Dolstra | 1 | -1/+1 | |
2013-08-07 | Run the daemon worker on the same CPU as the client | Eelco Dolstra | 1 | -0/+4 | |
On a system with multiple CPUs, running Nix operations through the daemon is significantly slower than "direct" mode: $ NIX_REMOTE= nix-instantiate '<nixos>' -A system real 0m0.974s user 0m0.875s sys 0m0.088s $ NIX_REMOTE=daemon nix-instantiate '<nixos>' -A system real 0m2.118s user 0m1.463s sys 0m0.218s The main reason seems to be that the client and the worker get moved to a different CPU after every call to the worker. This patch adds a hack to lock them to the same CPU. With this, the overhead of going through the daemon is very small: $ NIX_REMOTE=daemon nix-instantiate '<nixos>' -A system real 0m1.074s user 0m0.809s sys 0m0.098s | |||||
2013-07-07 | Leave `HAVE_HUP_NOTIFICATION' undefined on GNU/Hurd. | Ludovic Courtès | 1 | -2/+7 | |
2013-06-12 | nix-daemon: Trust options like binary-caches when the client is root | Eelco Dolstra | 1 | -5/+7 | |
Fixes #127. | |||||
2013-04-23 | Nix daemon: respect build timeout from the client | Eelco Dolstra | 1 | -3/+4 | |
2013-03-08 | Revert "Prevent config.h from being clobbered" | Eelco Dolstra | 1 | -1/+1 | |
This reverts commit 28bba8c44f484eae38e8a15dcec73cfa999156f6. | |||||
2013-03-07 | Prevent config.h from being clobbered | Eelco Dolstra | 1 | -1/+1 | |
2013-02-19 | Add `Settings::nixDaemonSocketFile'. | Ludovic Courtès | 1 | -1/+1 | |
2012-12-20 | nix-store -q --roots: Respect the gc-keep-outputs/gc-keep-derivations settings | Eelco Dolstra | 1 | -0/+3 | |
So if a path is not garbage solely because it's reachable from a root due to the gc-keep-outputs or gc-keep-derivations settings, ‘nix-store -q --roots’ now shows that root. | |||||
2012-11-15 | Don't use std::cerr in a few places | Eelco Dolstra | 1 | -3/+2 | |
Slightly scared of using std::cerr in a vforked process... | |||||
2012-10-03 | Rename nix-worker to nix-daemon | Eelco Dolstra | 2 | -0/+926 | |