mirror of
https://github.com/NixOS/nix
synced 2025-07-02 21:51:50 +02:00
Don't apply the CPU affinity hack to nix-shell (and other Perl programs)
As discovered by Todd Veldhuizen, the shell started by nix-shell has its affinity set to a single CPU. This is because nix-shell connects to the Nix daemon, which causes the affinity hack to be applied. So we turn this off for Perl programs.
This commit is contained in:
parent
4b83830d0c
commit
936f9d45ba
5 changed files with 11 additions and 7 deletions
|
@ -183,6 +183,9 @@ struct Settings {
|
|||
(to prevent them from being GCed). */
|
||||
bool envKeepDerivations;
|
||||
|
||||
/* Whether to lock the Nix client and worker to the same CPU. */
|
||||
bool lockCPU;
|
||||
|
||||
private:
|
||||
SettingsMap settings, overrides;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue