about summary refs log tree commit diff
path: root/perl
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-06T14·36+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-06T14·36+0200
commit936f9d45baf474358346666ed9ad7f56960bb455 (patch)
treed6c91635fee9b27da7875b1b6e9052c04b20b072 /perl
parent4b83830d0c742b69b59c698a42948eaa6d214c1d (diff)
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.
Diffstat (limited to 'perl')
-rw-r--r--perl/lib/Nix/Store.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs
index 8154bcbb0f4b..c449ed5241e8 100644
--- a/perl/lib/Nix/Store.xs
+++ b/perl/lib/Nix/Store.xs
@@ -20,6 +20,7 @@ void doInit()
     if (!store) {
         try {
             settings.processEnvironment();
+            settings.lockCPU = false;
             store = openStore();
         } catch (Error & e) {
             croak(e.what());